diff options
author | Samba Release Account <samba-bugs@samba.org> | 1997-02-16 05:30:42 +0000 |
---|---|---|
committer | Samba Release Account <samba-bugs@samba.org> | 1997-02-16 05:30:42 +0000 |
commit | 5f3a5d6f626326ad18c46efe2ce5448844f0ade2 (patch) | |
tree | 965af741547265a33c93c06128b40dcf50ac93ad /examples | |
parent | 19edc76b97c77fb885f145b721c0fa1c75d4fd1c (diff) | |
download | samba-5f3a5d6f626326ad18c46efe2ce5448844f0ade2.tar.gz samba-5f3a5d6f626326ad18c46efe2ce5448844f0ade2.tar.xz samba-5f3a5d6f626326ad18c46efe2ce5448844f0ade2.zip |
JHT ===> Hack, Hack, Hack. I just wanna get this spec file stuff right
so I can build RPMs on a DEC Alpha on which I do NOT have root
permissions. Argh!!!!!
Diffstat (limited to 'examples')
-rw-r--r-- | examples/redhat/samba-1.9.16p11.spec | 10 | ||||
-rw-r--r-- | examples/redhat/samba-1.9.16p11.spec.full | 160 |
2 files changed, 163 insertions, 7 deletions
diff --git a/examples/redhat/samba-1.9.16p11.spec b/examples/redhat/samba-1.9.16p11.spec index 74d4f023d14..68a906ef68e 100644 --- a/examples/redhat/samba-1.9.16p11.spec +++ b/examples/redhat/samba-1.9.16p11.spec @@ -1,7 +1,7 @@ Summary: SMB client and server Name: samba Version: 1.9.16p11 -Release: 2 +Release: 3 Copyright: GPL Group: Networking Source: ftp://samba.anu.edu.au/pub/samba/samba-1.9.16p11.tar.gz @@ -37,11 +37,11 @@ cd source 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 + install -m755 -s -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 + 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 do @@ -62,10 +62,6 @@ mkdir -p /home/samba mkdir -p /var/lock/samba chown root.nobody /home/samba chmod 775 /home/samba - -strip /usr/sbin/smbd /usr/bin/smbclient /usr/sbin/nmbd /usr/bin/testparm \ - /usr/bin/testprns /usr/bin/smbrun /usr/bin/smbstatus \ - /usr/bin/nmblookup /usr/bin/smbpasswd install -m 644 -o 0 -g 0 examples/redhat/samba.log /etc/logrotate.d/samba %post diff --git a/examples/redhat/samba-1.9.16p11.spec.full b/examples/redhat/samba-1.9.16p11.spec.full new file mode 100644 index 00000000000..5d6d6014f75 --- /dev/null +++ b/examples/redhat/samba-1.9.16p11.spec.full @@ -0,0 +1,160 @@ +Summary: SMB client and server +Name: samba +Version: 1.9.16p11 +Release: 2 +Copyright: GPL +Group: Networking +Source: ftp://samba.anu.edu.au/pub/samba/samba-1.9.16p11.tar.gz +Patch: samba-make.patch +Patch2: samba-axp.patch +Packager: John H Terpstra [Samba-Team] <jht@aquasoft.com.au> +Requires: pamconfig + +%description +Samba provides an SMB server which can be used to provide network +services to SMB (sometimes called "Lan Manager") clients, including +various versions of MS Windows, OS/2, and other Linux machines. +Samba also provides some SMB clients, which complement the built-in +SMB filesystem in Linux. + +Samba uses NetBIOS over TCP/IP (NetBT) protocols and does NOT need +NetBEUI (Microsoft Raw NetBIOS frame) protocol. + +%prep +%setup +%patch -p1 + +%ifarch axp +%patch2 -p1 +%endif + +%build +cd source +make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" +mkdir $RPM_BUILD_ROOT/bin +mkdir $RPM_BUILD_ROOT/etc +mkdir $RPM_BUILD_ROOT/etc/logrotate.d +mkdir $RPM_BUILD_ROOT/sbin +mkdir $RPM_BUILD_ROOT/usr +mkdir $RPM_BUILD_ROOT/usr/sbin +mkdir $RPM_BUILD_ROOT/usr/bin +mkdir $RPM_BUILD_ROOT/usr/man +mkdir $RPM_BUILD_ROOT/usr/man/man1 +mkdir $RPM_BUILD_ROOT/usr/man/man5 +mkdir $RPM_BUILD_ROOT/usr/man/man8 +mkdir $RPM_BUILD_ROOT/var +mkdir $RPM_BUILD_ROOT/var/spool +mkdir $RPM_BUILD_ROOT/var/log +mkdir $RPM_BUILD_ROOT/var/lock +mkdir $RPM_BUILD_ROOT/var/lock/samba + +%install +cd source +cd .. +for i in addtosmbpass mksmbpasswd.sh nmblookup smbclient smbpasswd smbrun smbstatus smbtar testparm testprn +do + cp -af source/$i $RPM_BUILD_ROOT/usr/bin + chown 0.0 $RPM_BUILD_ROOT/usr/bin/$i + chmod 755 $RPM_BUILD_ROOT/usr/bin/$i +done +for i in smbd nmbd +do + cp -af source/$i $RPM_BUILD_ROOT/usr/sbin + chown 0.0 $RPM_BUILD_ROOT/usr/sbin/$i + chmod 755 $RPM_BUILD_ROOT/usr/sbin/$i +done +for i in smbclient.1 smbrun.1 smbstatus.1 smbtar.1 testparm.1 testprn.1 +do + cp -af docs/$i $RPM_BUILD_ROOT/usr/man/man1 + chown 0.0 $RPM_BUILD_ROOT/usr/man/man1/$i + chmod 644 $RPM_BUILD_ROOT/usr/man/man1/$i +done +cp -af docs/smb.conf.5 $RPM_BUILD_ROOT/usr/man/man5 +chown 0.0 $RPM_BUILD_ROOT/usr/man/man5/smb.conf.5 +chmod 644 $RPM_BUILD_ROOT/usr/man/man5/smb.conf.5 +cp -af docs/samba.7 $RPM_BUILD_ROOT/usr/man/man7 +chown 0.0 $RPM_BUILD_ROOT/usr/man/man7/samba.7 +chmod 644 $RPM_BUILD_ROOT/usr/man/man7/samba.7 +cp -af docs/smbd.8 $RPM_BUILD_ROOT/usr/man/man8 +chown 0.0 $RPM_BUILD_ROOT/usr/man/man8/smbd.8 +chmod 644 $RPM_BUILD_ROOT/usr/man/man8/smbd.8 +cp -af docs/nmbd.8 $RPM_BUILD_ROOT/usr/man/man8 +chown 0.0 $RPM_BUILD_ROOT/usr/man/man8/nmbd.8 +chmod 644 $RPM_BUILD_ROOT/usr/man/man8/nmbd.8 +cp -af docs/smb.conf $RPM_BUILD_ROOT/etc/smb.conf.sampl +chown 0.0 $RPM_BUILD_ROOT/etc/smb.conf.sampl +chmod 644 $RPM_BUILD_ROOT/etc/smb.conf.sampl +if [ -x $RPM_BUILD_ROOT/etc/smb.conf ]; then + target = $RPM_BUILD_ROOT/etc/smb.conf.new +else + target = $RPM_BUILD_ROOT/etc/smb.conf +fi +cp -af examples/redhat/smb.conf $target +chown 0.0 $target +chmod 644 $target +cp -af examples/redhat/smb.init $RPM_BUILD_ROOT/etc/rc.d/init.d +chown 0.0 $RPM_BUILD_ROOT/etc/rc.d/init.d/smb.init +chmod 644 $RPM_BUILD_ROOT/etc/rc.d/init.d/smb.init +ln -sf $RPM_BUILD_ROOT/etc/rc.d/init.d/smb $RPM_BUILD_ROOT/etc/rc.d/rc3.d/S91smb +ln -sf $RPM_BUILD_ROOT/etc/rc.d/init.d/smb $RPM_BUILD_ROOT/etc/rc.d/rc0.d/K35smb +ln -sf $RPM_BUILD_ROOT/etc/rc.d/init.d/smb $RPM_BUILD_ROOT/etc/rc.d/rc6.d/K35smb +ln -sf $RPM_BUILD_ROOT/etc/rc.d/init.d/smb $RPM_BUILD_ROOT/etc/rc.d/rc1.d/K35smb +mkdir -p $RPM_BUILD_ROOT/home/samba +mkdir -p $RPM_BUILD_ROOT/var/lock/samba +chown root.nobody $RPM_BUILD_ROOT/home/samba +chmod 775 $RPM_BUILD_ROOT/home/samba +cp -af examples/redhat/samba.log $RPM_BUILD_ROOT/etc/logrotate.d/samba.log +chown 0.0 $RPM_BUILD_ROOT/etc/logrotate.d/samba.log +chmod 644 $RPM_BUILD_ROOT/etc/logrotate.d/samba.log + +%post +/sbin/pamconfig --add --service=samba --password=none --sesslist=none + +if [ ! -f /var/log/samba ]; then + touch /var/log/samba + chmod 600 /var/log/samba +fi + +%postun +if [ "$1" = 0 ] ; then + /sbin/pamconfig --remove --service=samba --password=none --sesslist=none +fi + +%files +%doc docs/*.txt docs/INSTALL.sambatar docs/MIRRORS docs/PROJECTS +%doc docs/README.DCEDFS docs/README.jis docs/README.sambatar +%doc docs/SMBTAR.notes docs/THANKS docs/announce docs/history +%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 +/usr/bin/testprns +/usr/bin/smbrun +/usr/bin/smbstatus +/usr/bin/nmblookup +/usr/bin/smbpasswd +/usr/bin/smbtar +%config /etc/smb.conf +%config /etc/smb.conf.sampl +%config /etc/rc.d/init.d/smb +%config /etc/rc.d/rc3.d/S91smb +%config /etc/rc.d/rc0.d/K35smb +%config /etc/rc.d/rc1.d/K35smb +%config /etc/rc.d/rc6.d/K35smb +%config /etc/logrotate.d/samba +/usr/man/man1/smbstatus.1 +/usr/man/man1/smbclient.1 +/usr/man/man1/smbrun.1 +/usr/man/man1/smbtar.1 +/usr/man/man1/testparm.1 +/usr/man/man1/testprns.1 +/usr/man/man5/smb.conf.5 +/usr/man/man7/samba.7 +/usr/man/man8/smbd.8 +/usr/man/man8/nmbd.8 +%dir /home/samba +%dir /var/lock/samba |