diff options
Diffstat (limited to 'examples')
-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 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 |