summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-08-26 23:14:46 +0000
committerroot <root@rshg054.dnsready.net>2011-08-26 23:14:46 +0000
commitd7d02f7c02a5c761e8a64df49598ae976640e450 (patch)
treef41444c598b244dfd14037b50bdccf3f9cf5d50e /testing
parent9621cbabd4788b98dfdee59d784c4b4b58384c6b (diff)
Fri Aug 26 23:14:45 UTC 2011
Diffstat (limited to 'testing')
-rw-r--r--testing/samba/PKGBUILD93
1 files changed, 59 insertions, 34 deletions
diff --git a/testing/samba/PKGBUILD b/testing/samba/PKGBUILD
index 2343a7aa5..6832cb257 100644
--- a/testing/samba/PKGBUILD
+++ b/testing/samba/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 135295 2011-08-12 10:01:24Z tpowa $
+# $Id: PKGBUILD 136307 2011-08-25 16:02:25Z tpowa $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
# Contributor: judd <jvinet@zeroflux.org>
pkgbase=samba
@@ -8,11 +8,12 @@ pkgver=3.6.0
# to append 'a','b',etc to their subsequent releases, which pamcan
# misconstrues as alpha, beta, etc. Bad samba!
_realver=3.6.0
-pkgrel=1
+pkgrel=3
arch=(i686 x86_64)
url="http://www.samba.org"
license=('GPL3')
-makedepends=('db' 'popt' 'libcups' 'acl' 'libldap' 'libcap' 'krb5' 'pam' 'fam' 'gnutls>=2.4.1' 'talloc' 'tdb')
+makedepends=('db' 'popt' 'libcups' 'acl' 'libldap' 'libcap' 'krb5' 'pam'
+'gamin' 'gnutls>=2.4.1' 'talloc' 'tdb' 'python2')
options=(!makeflags)
source=(http://us1.samba.org/samba/ftp/stable/${pkgbase}-${_realver}.tar.gz
samba samba.logrotate
@@ -24,27 +25,36 @@ source=(http://us1.samba.org/samba/ftp/stable/${pkgbase}-${_realver}.tar.gz
build() {
cd ${srcdir}/${pkgbase}-${_realver}/source3
- ./configure --prefix=/usr \
+ sed -i "s/env python/env python2/g" ../buildtools/bin/waf
+ ./autogen-waf.sh
+ # everything needs to be specified :/
+ ../buildtools/bin/waf configure --prefix=/usr \
+ --with-privatedir=/etc/samba/private \
--libdir=/usr/lib/ \
+ --with-modulesdir=/usr/lib/samba \
+ --with-swatdir=/usr/share/samba/swat \
--localstatedir=/var \
--with-configdir=/etc/samba \
--with-lockdir=/var/cache/samba \
+ --with-cachedir=/var/cache/samba \
+ --with-statedir=/var/cache/samba \
--with-piddir=/var/run/samba \
- --with-fhs \
+ --with-logfilebase=/var/log/samba \
+ --sysconfdir=/etc \
--with-pam \
--with-pam_smbpass \
--with-pammodulesdir=/lib/security \
--with-ads \
--with-acl-support \
- --with-cifsmount \
- --with-libsmbclient \
--with-syslog \
- --enable-external-libtalloc \
- --disable-dnssd \
--disable-avahi \
- --with-shared-modules=idmap_ad,idmap_adex,idmap_rid,idmap_hash \
- --enable-external-libtdb
- make
+ --with-shared-modules=idmap_ad,idmap_adex,idmap_rid,idmap_hash,idmap_tdb2 \
+ --disable-rpath \
+ --disable-rpath-private-install \
+ --disable-rpath-install
+ #fix the shitty build system!
+ sed -i -e 's#/etc/smb.conf#/etc/samba/smb.conf#g' bin/default/source3/include/config.h
+ ../buildtools/bin/waf build ${MAKEFLAGS}
}
package_smbclient () {
@@ -53,9 +63,23 @@ depends=('readline' 'popt' 'libldap' 'cifs-utils' 'libcap' 'krb5' 'db' 'e2fsprog
cd ${srcdir}/${pkgbase}-${_realver}/source3
mkdir -p ${pkgdir}/usr/bin ${pkgdir}/usr/lib
install -m755 bin/{smbclient,rpcclient,smbspool,smbtree,smbcacls,smbcquotas,smbget,net,nmblookup} ${pkgdir}/usr/bin/
- for i in libnetapi* libwbclient* libsmbclient*;do
- cp -a bin/${i}*.so* ${pkgdir}/usr/lib/
+ for i in libreplace.so libsmbregistry.so libsecurity.so librpccommon.so libdcerpc-samba.so libpassdb.so libLIBCLI_SPOOLSS.so libprinting_migrate.so libsamba3core.so libndr-samba.so libsamba-util-common.so libads.so libtdb-wrap.so libaddns.so libcliauth.so; do
+ install -m644 -D bin/shared/private/$i ${pkgdir}/usr/lib/$i
done
+ for i in libsmbconf libnetapi libwbclient libsmbclient; do
+ install -m644 -D bin/shared/$i.so.0 ${pkgdir}/usr/lib/$i.so.0
+ ln -sf /usr/lib/$i.so.0 ${pkgdir}/usr/lib/$i.so
+ done
+ mkdir ${pkgdir}/usr/lib/libsmb
+ ln -sf /usr/lib/libsmb/libsmbclient.so.0 ${pkgdir}/usr/lib/libsmb/libsmbclient.so.0
+ ln -sf /usr/lib/libsmb/libsmbclient.so.0 ${pkgdir}/usr/lib/libsmb/libsmbclient.so
+ for i in libndr-krb5pac libndr-standard libndr; do
+ install -m644 -D bin/shared/$i.so.0 ${pkgdir}/usr/lib/$i.so.0.0.1
+ ln -sf /usr/lib/$i.so.0.0.1 ${pkgdir}/usr/lib/$i.so.0
+ ln -sf /usr/lib/$i.so.0.0.1 ${pkgdir}/usr/lib/$i.so
+ done
+ install -m644 -D bin/shared/private/libtevent.so.0 ${pkgdir}/usr/lib/libtevent.so.0.9.11
+ ln -sf /usr/lib/samba/libtevent.so.0.9.11 ${pkgdir}/usr/lib/libtevent.so.0
install -m755 script/smbtar ${pkgdir}/usr/bin/
mkdir -p ${pkgdir}/usr/lib/cups/backend
ln -sf /usr/bin/smbspool ${pkgdir}/usr/lib/cups/backend/smb
@@ -77,37 +101,37 @@ backup=(etc/logrotate.d/samba
etc/samba/smb.conf
etc/xinetd.d/swat
etc/conf.d/samba)
-depends=('db' 'popt' 'libcups' 'acl' 'libldap' "smbclient>=$pkgver" 'libcap' 'krb5' 'pam' 'fam' 'gnutls' 'e2fsprogs' 'tdb' 'talloc')
+depends=('db' 'popt' 'libcups' 'acl' 'libldap' "smbclient>=$pkgver" 'libcap' 'krb5' 'pam' 'gamin' 'gnutls' 'e2fsprogs' 'tdb' 'talloc')
+optdepends=('python2: for python bindings')
cd ${srcdir}/samba-${_realver}/source3
mkdir -p ${pkgdir}/etc/samba/private
chmod 700 ${pkgdir}/etc/samba/private
- make DESTDIR=${pkgdir} install
+ ../buildtools/bin/waf install --destdir=${pkgdir}
chmod 644 ${pkgdir}/usr/include/*.h
rm -rf ${pkgdir}/usr/var
- (cd script; cp installbin.sh i; cat i | sed 's/\/sbin\///' > installbin.sh)
- install -D -m755 ../../samba ${pkgdir}/etc/rc.d/samba
- install -D -m644 ../../samba.conf.d ${pkgdir}/etc/conf.d/samba
+ install -D -m755 ${startdir}/samba ${pkgdir}/etc/rc.d/samba
+ install -D -m644 ${startdir}/samba.conf.d ${pkgdir}/etc/conf.d/samba
mkdir -p ${pkgdir}/etc/samba
cat ../examples/smb.conf.default | \
sed 's|log file = .*$|log file = /var/log/samba/log.%m|g' >${pkgdir}/etc/samba/smb.conf.default
- install -D -m644 ../../samba.logrotate ${pkgdir}/etc/logrotate.d/samba
- install -D -m644 ../../swat.xinetd ${pkgdir}/etc/xinetd.d/swat
- install -D -m644 ../../samba.pam ${pkgdir}/etc/pam.d/samba
+ install -D -m644 ${startdir}/samba.logrotate ${pkgdir}/etc/logrotate.d/samba
+ install -D -m644 ${startdir}/swat.xinetd ${pkgdir}/etc/xinetd.d/swat
+ install -D -m644 ${startdir}/samba.pam ${pkgdir}/etc/pam.d/samba
# spool directory
install -d -m1777 ${pkgdir}/var/spool/samba
sed -i 's|/usr/spool/samba|/var/spool/samba|g' ${pkgdir}/etc/samba/smb.conf.default
# fix logrotate
sed -i -e 's|log.%m|%m.log|g' ${pkgdir}/etc/samba/smb.conf.default
- # nsswitch libraries
- install -D -m755 ${srcdir}/samba-${_realver}/nsswitch/libnss_wins.so ${pkgdir}/lib/libnss_wins.so
- ln -s libnss_wins.so ${pkgdir}/lib/libnss_wins.so.2
- install -D -m755 ${srcdir}/samba-${_realver}/nsswitch/libnss_winbind.so ${pkgdir}/lib/libnss_winbind.so
# remove conflict files of smbclient
for man in libsmbclient smbspool \
mount.cifs net cifs.upcall; do
rm -f ${pkgdir}/usr/share/man/man8/${man}.8
done
- for i in libnetapi* libwbclient* libsmbclient*;do
+ for i in libreplace.so libsmbregistry.so libsecurity.so librpccommon.so libdcerpc-samba.so libpassdb.so libLIBCLI_SPOOLSS.so libprinting_migrate.so libsamba3core.so libndr-samba.so libsamba-util-common.so libads.so libtdb-wrap.so libaddns.so libcliauth.so libtevent.so.0.9.11 libtevent.so.0; do
+ rm -f ${pkgdir}/usr/lib/samba/$i
+ done
+ mv ${pkgdir}/usr/lib/samba/*.so ${pkgdir}/usr/lib
+ for i in libndr-krb5pac.* libsmbconf.* libndr-standard.* libndr.* libnetapi.* libwbclient.* libsmbclient.*; do
rm -f ${pkgdir}/usr/lib/$i
done
for bin in net \
@@ -115,6 +139,7 @@ depends=('db' 'popt' 'libcups' 'acl' 'libldap' "smbclient>=$pkgver" 'libcap' 'kr
smbcquotas smbget smbspool smbtar smbtree; do
rm -f ${pkgdir}/usr/bin/$bin
done
+ rm -r ${pkgdir}/usr/lib/libsmb
rm -f ${pkgdir}/usr/sbin/cifs.upcall
rm -f ${pkgdir}/usr/include/netapi.h
for man in rpcclient smbcacls smbclient smbcquotas \
@@ -129,10 +154,10 @@ depends=('db' 'popt' 'libcups' 'acl' 'libldap' "smbclient>=$pkgver" 'libcap' 'kr
# copy ldap example
install -D -m644 ${srcdir}/samba-${_realver}/examples/LDAP/samba.schema ${pkgdir}/usr/share/doc/samba/examples/LDAP/samba.schema
}
-md5sums=('e297e0ea7923c7de8d7c1d8fd0ec0a05'
- 'a3da19515a234c703876cf850c44e996'
- '5697da77590ec092cc8a883bae06093c'
- 'a4bbfa39fee95bba2e7ad6b535fae7e6'
- '96f82c38f3f540b53f3e5144900acf17'
- 'f2f2e348acd1ccb566e95fa8a561b828'
- 'c6a38a8c8fa24979e6217aed533358ea')
+md5sums=(e297e0ea7923c7de8d7c1d8fd0ec0a05
+ a3da19515a234c703876cf850c44e996
+ 5697da77590ec092cc8a883bae06093c
+ a4bbfa39fee95bba2e7ad6b535fae7e6
+ 96f82c38f3f540b53f3e5144900acf17
+ f2f2e348acd1ccb566e95fa8a561b828
+ c6a38a8c8fa24979e6217aed533358ea)