Updated build spec file - removed make_printerdef and modified DESTDIR handling
authorJohn Terpstra <jht@samba.org>
Tue, 12 Nov 2002 04:44:47 +0000 (04:44 +0000)
committerJohn Terpstra <jht@samba.org>
Tue, 12 Nov 2002 04:44:47 +0000 (04:44 +0000)
to work with new DESTDIR in Makefile.
(This used to be commit ea4d122a8591288221e6f92a4182de82ab0b51e7)

packaging/Caldera/OpenLinux/samba3.spec.tmpl

index 5d5917980c4c3260ad0c558ecb307ce3f9a13569..0a5e2709188dc8b8859ff722c4277591319e72c0 100644 (file)
@@ -206,13 +206,13 @@ rm configure
 autoconf
 
 CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \
-       --prefix='$(DESTDIR)/usr' \
-       --localstatedir='$(DESTDIR)/var' \
-       --libdir='$(DESTDIR)%{EtcSamba}' \
-       --sbindir='$(DESTDIR)/usr/sbin' \
+       --prefix=/usr \
+       --localstatedir=/var \
+       --libdir='%{EtcSamba}' \
+       --sbindir=/usr/sbin \
        --with-privatedir='$(LIBDIR)' \
-       --with-lockdir='$(DESTDIR)/var/lock/samba.d' \
-       --with-swatdir='$(DESTDIR)/usr/share/swat' \
+       --with-lockdir=/var/lock/samba.d \
+       --with-swatdir=/usr/share/swat \
        --with-smbmount \
        --with-pam \
        --with-tdbsam \
@@ -229,7 +229,7 @@ CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \
        --with-smbwrapper \
        --with-libsmbclient \
        --with-acl-support \
-       --with-sambabook=$(DESTDIR)/usr/share/swat/using_samba
+       --with-sambabook=/usr/share/swat/using_samba
 
 # Temp disabled - add later - JHT
 #      --with-pam_smbpass \
@@ -239,12 +239,7 @@ make all nsswitch/libnss_wins.so nsswitch/libnss_winbind.so torture nsswitch/pam
 (cd tdb; make tdbdump tdbtest tdbtorture tdbtool)
 
 cd ../examples/VFS
-#CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \
-#        --prefix='$(DESTDIR)/usr' \
-#        --localstatedir='$(DESTDIR)/var' \
-#        --libdir='$(DESTDIR)%{EtcSamba}' \
-#        --sbindir='$(DESTDIR)/usr/sbin'
-make
+make srcdir=../../source
 
 %Install
 %{mkDESTDIR}
@@ -265,7 +260,7 @@ mkdir -p $DESTDIR/usr/share/samba/codepages/src
 mkdir -p $DESTDIR/usr/share/swat/using_samba/{gifs,figs}
 mkdir -p $DESTDIR/var/{lo{ck,g}/samba.d,spool/samba}
 
-make -C source install installclientlib 
+make -C source DESTDIR=$RPM_BUILD_ROOT install installclientlib 
 
 strip $DESTDIR/usr/bin/smb{mount,mnt,umount}
 # Add links for mount.smbfs
@@ -273,7 +268,7 @@ strip $DESTDIR/usr/bin/smb{mount,mnt,umount}
        ln -s /usr/bin/smbumount umount.smbfs )
 
 # First install /usr/bin progs
-for i in smbfilter make_printerdef debug2html
+for i in smbfilter debug2html
 do
        install -m 755 source/bin/$i $DESTDIR/usr/bin
 done
@@ -293,10 +288,6 @@ do
        install -m755 examples/VFS/$i $DESTDIR/lib/samba
 done
 
-#mv $DESTDIR/usr/bin/{make,add,conv}* $DESTDIR/usr/sbin
-
-#cp -p source/codepages/codepage_def.??? $DESTDIR%{EtcSamba}/codepages/src
-
 # Install the nsswitch library extension file
 cp -p source/nsswitch/libnss_wins.so $DESTDIR/lib
 cp -p source/nsswitch/libnss_winbind.so $DESTDIR/lib