From 12b3473e0ced1719b785914622691509d9371e44 Mon Sep 17 00:00:00 2001 From: Samba Release Account Date: Tue, 18 Feb 1997 02:56:08 +0000 Subject: JHT ===> Still mucking around with RPM building for RedHat Linux (This used to be commit 77568d945dba58f9611967ee06eef8efe79f7454) --- examples/redhat/makeldirs.sh | 10 ++++++++++ examples/redhat/makerpms.sh | 16 +++++++++------- examples/redhat/samba-1.9.16p11.spec | 8 ++++++-- 3 files changed, 25 insertions(+), 9 deletions(-) create mode 100755 examples/redhat/makeldirs.sh (limited to 'examples') diff --git a/examples/redhat/makeldirs.sh b/examples/redhat/makeldirs.sh new file mode 100755 index 0000000000..1ca312dfc1 --- /dev/null +++ b/examples/redhat/makeldirs.sh @@ -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 diff --git a/examples/redhat/makerpms.sh b/examples/redhat/makerpms.sh index ee1e5f0729..44a5838b52 100755 --- a/examples/redhat/makerpms.sh +++ b/examples/redhat/makerpms.sh @@ -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 diff --git a/examples/redhat/samba-1.9.16p11.spec b/examples/redhat/samba-1.9.16p11.spec index 68a906ef68..0c71b9ba8b 100644 --- a/examples/redhat/samba-1.9.16p11.spec +++ b/examples/redhat/samba-1.9.16p11.spec @@ -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 -- cgit