diff options
author | Samba Release Account <samba-bugs@samba.org> | 1997-02-15 08:38:06 +0000 |
---|---|---|
committer | Samba Release Account <samba-bugs@samba.org> | 1997-02-15 08:38:06 +0000 |
commit | 19edc76b97c77fb885f145b721c0fa1c75d4fd1c (patch) | |
tree | e014854cb4f9f383e44448becbc615839d01ac5c /examples | |
parent | c189ef38455653334b8414f30d0aeaa3ecefa202 (diff) | |
download | samba-19edc76b97c77fb885f145b721c0fa1c75d4fd1c.tar.gz |
JHT ===> Trying to enable RPM build from non-root area.
makerpms.sh is just type and go attempt.
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/redhat/makerpms.sh | 11 | ||||
-rw-r--r-- | examples/redhat/samba-1.9.16p11.spec | 27 |
2 files changed, 33 insertions, 5 deletions
diff --git a/examples/redhat/makerpms.sh b/examples/redhat/makerpms.sh new file mode 100755 index 00000000000..ee1e5f07291 --- /dev/null +++ b/examples/redhat/makerpms.sh @@ -0,0 +1,11 @@ +#!/bin/sh +# First we move all our gear into place - a noble move! +RPMROOT=$HOME/rpmdir +cp -a *.spec $RPMROOT/SPECS +cp -a *.patch smb.* samba.log $RPMDIR/SOURCES +cp -a ../../../samba-1.9.16p11.tar.gz $RPMROOT/SOURCES +cd $RPMROOT/SPECS +rpm -ba -v samba-1.9.16p11.spec +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 7ced0a658fe..74d4f023d14 100644 --- a/examples/redhat/samba-1.9.16p11.spec +++ b/examples/redhat/samba-1.9.16p11.spec @@ -34,15 +34,30 @@ make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" %install cd source -make install cd .. +for i in addtosmbpass mksmbpasswd.sh nmblookup smbclient smbpasswd smbrun smbstatus smbtar testparm testprn +do + install -m755 -g 0 -o 0 source/$i /usr/bin +done +for i in smbd nmbd +do + install -m755 -g 0 -o 0 source/$i /usr/sbin +done +for i in smbclient.1 smbrun.1 smbstatus.1 smbtar.1 testparm.1 testprn.1 +do + install -m644 -g 0 -o 0 docs/$i /usr/man/man1 +done +install -m644 -g 0 -o 0 docs/smb.conf.5 /usr/man/man5 +install -m644 -g 0 -o 0 docs/samba.7 /usr/man/man7 +install -m644 -g 0 -o 0 docs/smbd.8 /usr/man/man8 +install -m644 -g 0 -o 0 docs/nmbd.8 /usr/man/man8 install -m644 examples/simple/smb.conf /etc/smb.conf.sampl install -m644 examples/redhat/smb.conf /etc/smb.conf install -m755 examples/redhat/smb.init /etc/rc.d/init.d/smb -ln -sf ../init.d/smb /etc/rc.d/rc3.d/S91smb -ln -sf ../init.d/smb /etc/rc.d/rc0.d/K35smb -ln -sf ../init.d/smb /etc/rc.d/rc6.d/K35smb -ln -sf ../init.d/smb /etc/rc.d/rc1.d/K35smb +ln -sf /etc/rc.d/init.d/smb /etc/rc.d/rc3.d/S91smb +ln -sf /etc/rc.d/init.d/smb /etc/rc.d/rc0.d/K35smb +ln -sf /etc/rc.d/init.d/smb /etc/rc.d/rc6.d/K35smb +ln -sf /etc/rc.d/init.d/smb /etc/rc.d/rc1.d/K35smb mkdir -p /home/samba mkdir -p /var/lock/samba chown root.nobody /home/samba @@ -73,6 +88,8 @@ fi %doc docs/samba.faq docs/samba.lsm docs/wfw_slip.htm %doc examples /usr/sbin/smbd +/usr/bin/addtosmbpass +/usr/bin/mksmbpasswd.sh /usr/bin/smbclient /usr/sbin/nmbd /usr/bin/testparm |