summaryrefslogtreecommitdiff
path: root/packaging/Caldera/UnixWare/Package
blob: f225b8eb7ead0d2b9a8c495964b3e2c283cfc5c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/ksh
#
# Now create the actual pkgadd installable datastream
#
# invoke with -n as the first argument to get this script to tell
# you what it would do without doing anything
#

V=
[ "$1" = "-n" ] && V=echo

$V cd dist
PKGNAME=samba
PKGBLD=`pwd`
[ "$V" = "echo" ] && PKGBLD=$PKGBLD/dist

PKGCOMPRESS="-c"
#PKGBLOCKLIM=2876
PKGBLOCKLIM=6200

##############################################################################
#
#	make filesystem-type package in directory ./$PKGNAME/
#	(source files reside in ./root)
#
#       don't use PKGBLOCKLIM for now
#
$V pkgmk    -o $PKGCOMPRESS -d $PKGBLD -r $PKGBLD
#pkgmk    -o $PKGCOMPRESS -l $PKGBLOCKLIM -d $PKGBLD -r $PKGBLD
#pkgmk    -o $PKGCOMPRESS -l $PKGBLOCKLIM -d $PKGBLD -r $PKGBLD/root

#
#	make $PKGNAME.pkg datastream-type package
#
$V pkgtrans -s $PKGBLD $PKGBLD/$PKGNAME.pkg $PKGNAME

#
#	remove filesystem-type package
#
#rm -rf $PKGBLD/$PKGNAME