summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorJohn Terpstra <jht@samba.org>2002-11-12 04:44:47 +0000
committerJohn Terpstra <jht@samba.org>2002-11-12 04:44:47 +0000
commitf2b669b37fecda2687860eba4a15801dc89855dc (patch)
treeea56e58d6be098f410d27e110803f7a271c2f90e /packaging
parentda45fbf63574b774504486e32e87811379e72d26 (diff)
downloadsamba-f2b669b37fecda2687860eba4a15801dc89855dc.tar.gz
samba-f2b669b37fecda2687860eba4a15801dc89855dc.tar.bz2
samba-f2b669b37fecda2687860eba4a15801dc89855dc.zip
Updated build spec file - removed make_printerdef and modified DESTDIR handling
to work with new DESTDIR in Makefile. (This used to be commit ea4d122a8591288221e6f92a4182de82ab0b51e7)
Diffstat (limited to 'packaging')
-rw-r--r--packaging/Caldera/OpenLinux/samba3.spec.tmpl29
1 files changed, 10 insertions, 19 deletions
diff --git a/packaging/Caldera/OpenLinux/samba3.spec.tmpl b/packaging/Caldera/OpenLinux/samba3.spec.tmpl
index 5d5917980c..0a5e270918 100644
--- a/packaging/Caldera/OpenLinux/samba3.spec.tmpl
+++ b/packaging/Caldera/OpenLinux/samba3.spec.tmpl
@@ -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