summaryrefslogtreecommitdiff
path: root/packaging/PHT/TurboLinux/makerpms.sh.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/PHT/TurboLinux/makerpms.sh.tmpl')
-rw-r--r--packaging/PHT/TurboLinux/makerpms.sh.tmpl12
1 files changed, 6 insertions, 6 deletions
diff --git a/packaging/PHT/TurboLinux/makerpms.sh.tmpl b/packaging/PHT/TurboLinux/makerpms.sh.tmpl
index 3b364c74a7..c389bf1a68 100644
--- a/packaging/PHT/TurboLinux/makerpms.sh.tmpl
+++ b/packaging/PHT/TurboLinux/makerpms.sh.tmpl
@@ -1,14 +1,14 @@
#!/bin/sh
-# Copyright (C) John H Terpstra 1998
+# Copyright (C) 1998 John H Terpstra, 1999 K Spoon
#
-RPMDIR=`rpm --showrc | awk '/^rpmdir/ { print $3}'`
-SPECDIR=`rpm --showrc | awk '/^specdir/ { print $3}'`
-SRCDIR=`rpm --showrc | awk '/^sourcedir/ { print $3}'`
+SPECDIR=/usr/src/turbo/SPECS
+SRCDIR=/usr/src/turbo/SOURCES
+USERID=`id -u`
+GRPID=`id -g`
+( cd ../../../.. ; chown -R ${USERID}.${GRPID} ${SRCDIR}/samba-PVERSION )
( cd ../../../.. ; tar czvf ${SRCDIR}/samba-PVERSION.tar.gz samba-PVERSION )
cp -a *.spec $SPECDIR
cp -a *.patch smb.* samba.log $SRCDIR
-cd $SRCDIR
-chown -R root.root samba-PVERSION
cd $SPECDIR
rpm -ba -v samba2.spec