summaryrefslogtreecommitdiff
path: root/packaging/Caldera
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/Caldera')
-rw-r--r--packaging/Caldera/OpenLinux/makerpms.sh.tmpl25
1 files changed, 18 insertions, 7 deletions
diff --git a/packaging/Caldera/OpenLinux/makerpms.sh.tmpl b/packaging/Caldera/OpenLinux/makerpms.sh.tmpl
index 8f7b06235b..fda8545df7 100644
--- a/packaging/Caldera/OpenLinux/makerpms.sh.tmpl
+++ b/packaging/Caldera/OpenLinux/makerpms.sh.tmpl
@@ -1,14 +1,25 @@
#!/bin/sh
# Copyright (C) 1998 John H Terpstra, 2000 Klaus Singvogel
#
-SPECDIR=/usr/src/OpenLinux/SPECS
-SRCDIR=/usr/src/OpenLinux/SOURCES
+SPECDIR=${SPECDIR:-/usr/src/OpenLinux/SPECS}
+SRCDIR=${SRCDIR:-/usr/src/OpenLinux/SOURCES}
USERID=`id -u`
GRPID=`id -g`
-( cd ../../../.. ; chown -R ${USERID}.${GRPID} ${SRCDIR}/samba )
-( cd ../../../.. ; tar czvf ${SRCDIR}/samba.tar.gz samba-PVERSIONPRELEASE )
-cp -a *.spec $SPECDIR
-cp -a *.patch smb.* samba.* make* find* convert* updates* $SRCDIR
+if ( z$1 == "zdevel" ) then
+ ( cd ../../../.. ; chown -R ${USERID}.${GRPID} ${SRCDIR}/samba; mv samba samba-PVERSION )
+ ( cd ../../../.. ; tar czvf ${SRCDIR}/samba-PVERSION.tar.gz samba-PVERIONS; mv samba-PVERSION samba )
+else
+ ( cd ../../../.. ; chown -R ${USERID}.${GRPID} ${SRCDIR}/samba-PVERSION )
+ ( cd ../../../.. ; tar czvf ${SRCDIR}/samba-PVERSION.tar.gz samba-PVERSION )
+done
+
+cp -a *.spec *.spec-lsb $SPECDIR
+for src in *.patch; do
+ trg=`echo $src | sed 's;xxxxxx;PVERSION;'`
+ cp -a $src $SRCDIR/$trg
+done
cd $SPECDIR
-rpm -ba -v samba3.spec
+mv samba2.spec samba2.spec-nonlsb
+ln samba2.spec-lsb samba2.spec
+rpm -ba -v samba2.spec