JHT ===> Still mucking around with RPM building for RedHat Linux
authorSamba Release Account <samba-bugs@samba.org>
Tue, 18 Feb 1997 02:56:08 +0000 (02:56 +0000)
committerSamba Release Account <samba-bugs@samba.org>
Tue, 18 Feb 1997 02:56:08 +0000 (02:56 +0000)
(This used to be commit 77568d945dba58f9611967ee06eef8efe79f7454)

examples/redhat/makeldirs.sh [new file with mode: 0755]
examples/redhat/makerpms.sh
examples/redhat/samba-1.9.16p11.spec

diff --git a/examples/redhat/makeldirs.sh b/examples/redhat/makeldirs.sh
new file mode 100755 (executable)
index 0000000..1ca312d
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+RPMDIR=$1
+mkdir $RPMDIR
+for i in etc etc/logrotate.d bin sbin usr usr/bin usr/sbin var var/spool var/log var/lock var/lock/samba
+do
+       if [ ! -x $RPMDIR/$i ]; then
+               mkdir $RPMDIR/$i
+       fi
+       echo Mkdir $RPMDIR/$i ... Done
+done
index ee1e5f07291952834c0f0751e484c7cac4070ecf..44a5838b52eab0f9a240fa02f5387887f1303389 100755 (executable)
@@ -1,11 +1,13 @@
 #!/bin/sh
 # First we move all our gear into place - a noble move!
-RPMROOT=$HOME/rpmdir
-cp -a *.spec $RPMROOT/SPECS
+RPMDIR=/usr/src/redhat
+cp -a *.spec $RPMDIR/SPECS
 cp -a *.patch smb.* samba.log $RPMDIR/SOURCES
-cp -a ../../../samba-1.9.16p11.tar.gz $RPMROOT/SOURCES
-cd $RPMROOT/SPECS
+# cp -a ../../../samba-1.9.16p11.tar.gz $RPMDIR/SOURCES
+cd $RPMDIR/SOURCES
+rm -rf samba-1.9.16p11
+cd $RPMDIR/SPECS
 rpm -ba -v samba-1.9.16p11.spec
-cd ..
-mkdir $RPMDIR/distrib
-cp -avf RPMS SRPMS distrib
+#cd ..
+#mkdir $RPMDIR/distrib
+#cp -avf RPMS SRPMS distrib
index 68a906ef68e2b8f461567851df4693f132237fc0..0c71b9ba8bd0e86732ed06bd1c5d09e5a4f7f8cc 100644 (file)
@@ -35,15 +35,19 @@ make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
 %install
 cd source
 cd ..
-for i in addtosmbpass mksmbpasswd.sh nmblookup smbclient smbpasswd smbrun smbstatus smbtar testparm testprn
+for i in nmblookup smbclient smbpasswd smbrun smbstatus testparm testprns
 do
        install -m755 -s -g 0 -o 0 source/$i /usr/bin
 done
+for i in addtosmbpass mksmbpasswd.sh smbtar 
+do
+       install -m755 -g 0 -o 0 source/$i /usr/bin
+done
 for i in smbd nmbd
 do
        install -m755 -s -g 0 -o 0 source/$i /usr/sbin
 done
-for i in smbclient.1 smbrun.1 smbstatus.1 smbtar.1 testparm.1 testprn.1
+for i in smbclient.1 smbrun.1 smbstatus.1 smbtar.1 testparm.1 testprns.1
 do
        install -m644 -g 0 -o 0 docs/$i /usr/man/man1
 done