--- /dev/null
+#!/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
#!/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
%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