diff options
author | Samba Release Account <samba-bugs@samba.org> | 1997-02-18 02:56:08 +0000 |
---|---|---|
committer | Samba Release Account <samba-bugs@samba.org> | 1997-02-18 02:56:08 +0000 |
commit | 77568d945dba58f9611967ee06eef8efe79f7454 (patch) | |
tree | 48376eb6e33576cc5eebafaeb37bafd60918208a | |
parent | 5f3a5d6f626326ad18c46efe2ce5448844f0ade2 (diff) | |
download | samba-77568d945dba58f9611967ee06eef8efe79f7454.tar.gz |
JHT ===> Still mucking around with RPM building for RedHat Linux
-rwxr-xr-x | examples/redhat/makeldirs.sh | 10 | ||||
-rwxr-xr-x | examples/redhat/makerpms.sh | 16 | ||||
-rw-r--r-- | examples/redhat/samba-1.9.16p11.spec | 8 |
3 files changed, 25 insertions, 9 deletions
diff --git a/examples/redhat/makeldirs.sh b/examples/redhat/makeldirs.sh new file mode 100755 index 00000000000..1ca312dfc18 --- /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 ee1e5f07291..44a5838b52e 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 68a906ef68e..0c71b9ba8bd 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 |