[arch-commits] Commit in samba/repos (48 files)
Tobias Powalowski
tpowa at archlinux.org
Fri Aug 11 09:56:33 UTC 2017
Date: Friday, August 11, 2017 @ 09:56:32
Author: tpowa
Revision: 301906
archrelease: copy trunk to extra-i686, extra-x86_64
Added:
samba/repos/extra-i686/PKGBUILD
(from rev 301905, samba/trunk/PKGBUILD)
samba/repos/extra-i686/nmbd.service
(from rev 301905, samba/trunk/nmbd.service)
samba/repos/extra-i686/samba.conf
(from rev 301905, samba/trunk/samba.conf)
samba/repos/extra-i686/samba.conf.d
(from rev 301905, samba/trunk/samba.conf.d)
samba/repos/extra-i686/samba.install
(from rev 301905, samba/trunk/samba.install)
samba/repos/extra-i686/samba.logrotate
(from rev 301905, samba/trunk/samba.logrotate)
samba/repos/extra-i686/samba.pam
(from rev 301905, samba/trunk/samba.pam)
samba/repos/extra-i686/samba.service
(from rev 301905, samba/trunk/samba.service)
samba/repos/extra-i686/smbd.service
(from rev 301905, samba/trunk/smbd.service)
samba/repos/extra-i686/smbd.socket
(from rev 301905, samba/trunk/smbd.socket)
samba/repos/extra-i686/smbd at .service
(from rev 301905, samba/trunk/smbd at .service)
samba/repos/extra-i686/winbindd.service
(from rev 301905, samba/trunk/winbindd.service)
samba/repos/extra-x86_64/PKGBUILD
(from rev 301905, samba/trunk/PKGBUILD)
samba/repos/extra-x86_64/nmbd.service
(from rev 301905, samba/trunk/nmbd.service)
samba/repos/extra-x86_64/samba.conf
(from rev 301905, samba/trunk/samba.conf)
samba/repos/extra-x86_64/samba.conf.d
(from rev 301905, samba/trunk/samba.conf.d)
samba/repos/extra-x86_64/samba.install
(from rev 301905, samba/trunk/samba.install)
samba/repos/extra-x86_64/samba.logrotate
(from rev 301905, samba/trunk/samba.logrotate)
samba/repos/extra-x86_64/samba.pam
(from rev 301905, samba/trunk/samba.pam)
samba/repos/extra-x86_64/samba.service
(from rev 301905, samba/trunk/samba.service)
samba/repos/extra-x86_64/smbd.service
(from rev 301905, samba/trunk/smbd.service)
samba/repos/extra-x86_64/smbd.socket
(from rev 301905, samba/trunk/smbd.socket)
samba/repos/extra-x86_64/smbd at .service
(from rev 301905, samba/trunk/smbd at .service)
samba/repos/extra-x86_64/winbindd.service
(from rev 301905, samba/trunk/winbindd.service)
Deleted:
samba/repos/extra-i686/PKGBUILD
samba/repos/extra-i686/nmbd.service
samba/repos/extra-i686/samba.conf
samba/repos/extra-i686/samba.conf.d
samba/repos/extra-i686/samba.install
samba/repos/extra-i686/samba.logrotate
samba/repos/extra-i686/samba.pam
samba/repos/extra-i686/samba.service
samba/repos/extra-i686/smbd.service
samba/repos/extra-i686/smbd.socket
samba/repos/extra-i686/smbd at .service
samba/repos/extra-i686/winbindd.service
samba/repos/extra-x86_64/PKGBUILD
samba/repos/extra-x86_64/nmbd.service
samba/repos/extra-x86_64/samba.conf
samba/repos/extra-x86_64/samba.conf.d
samba/repos/extra-x86_64/samba.install
samba/repos/extra-x86_64/samba.logrotate
samba/repos/extra-x86_64/samba.pam
samba/repos/extra-x86_64/samba.service
samba/repos/extra-x86_64/smbd.service
samba/repos/extra-x86_64/smbd.socket
samba/repos/extra-x86_64/smbd at .service
samba/repos/extra-x86_64/winbindd.service
-------------------------------+
/PKGBUILD | 514 ++++++++++++++++++++++++++++++++++++++++
/nmbd.service | 24 +
/samba.conf | 4
/samba.conf.d | 36 ++
/samba.install | 20 +
/samba.logrotate | 18 +
/samba.pam | 6
/samba.service | 28 ++
/smbd.service | 24 +
/smbd.socket | 18 +
/smbd at .service | 14 +
/winbindd.service | 24 +
extra-i686/PKGBUILD | 257 --------------------
extra-i686/nmbd.service | 12
extra-i686/samba.conf | 2
extra-i686/samba.conf.d | 18 -
extra-i686/samba.install | 10
extra-i686/samba.logrotate | 9
extra-i686/samba.pam | 3
extra-i686/samba.service | 14 -
extra-i686/smbd.service | 12
extra-i686/smbd.socket | 9
extra-i686/smbd at .service | 7
extra-i686/winbindd.service | 12
extra-x86_64/PKGBUILD | 257 --------------------
extra-x86_64/nmbd.service | 12
extra-x86_64/samba.conf | 2
extra-x86_64/samba.conf.d | 18 -
extra-x86_64/samba.install | 10
extra-x86_64/samba.logrotate | 9
extra-x86_64/samba.pam | 3
extra-x86_64/samba.service | 14 -
extra-x86_64/smbd.service | 12
extra-x86_64/smbd.socket | 9
extra-x86_64/smbd at .service | 7
extra-x86_64/winbindd.service | 12
36 files changed, 730 insertions(+), 730 deletions(-)
Deleted: extra-i686/PKGBUILD
===================================================================
--- extra-i686/PKGBUILD 2017-08-11 09:49:53 UTC (rev 301905)
+++ extra-i686/PKGBUILD 2017-08-11 09:56:32 UTC (rev 301906)
@@ -1,257 +0,0 @@
-
-# Maintainer: Tobias Powalowski <tpowa at archlinux.org>
-# Contributor: judd <jvinet at zeroflux.org>
-# Contributor: Michael Hansen <zrax0111 gmail com>
-# Contributor: Marco A Rojas <marquicus at gmail.com>
-# Contributor: Netanel Shine <netanel at archlinux.org.il >
-# Contributor: ngoonee <ngoonee.talk at gmail.com>
-# Contributor: Adam Russell <adamlr6+arch at gmail.com>
-# Contributor: Dhananjay Sathe <dhananjaysathe at gmail.com>
-
-pkgbase=samba
-pkgname=('libwbclient' 'smbclient' 'samba')
-pkgver=4.6.7
-pkgrel=1
-arch=(i686 x86_64)
-url="http://www.samba.org"
-license=('GPL3')
-makedepends=('python2' 'docbook-xsl' 'pkg-config' 'libbsd' 'db' 'popt' 'libcups'
- 'readline' 'tevent' 'acl' 'libldap' 'libcap' 'ldb>=1.1.15' 'krb5' 'pam' 'systemd'
- 'gamin' 'gnutls>=2.4.1' 'talloc' 'tdb' 'dbus' 'libaio' 'perl-parse-yapp')
-source=(http://us1.samba.org/samba/ftp/stable/${pkgbase}-${pkgver}.tar.gz
- http://us1.samba.org/samba/ftp/stable/${pkgbase}-${pkgver}.tar.asc
- samba.logrotate
- samba.pam
- samba.service
- samba.conf.d
- smbd.service
- smbd.socket
- nmbd.service
- smbd at .service
- winbindd.service
- samba.conf)
-validpgpkeys=('52FBC0B86D954B0843324CDC6F33915B6568B7EA') #Samba Distribution Verification Key <samba-bugs at samba.org>
-### UNINSTALL dmapi package before building!!!
-
-prepare() {
- cd samba-${pkgver}
-}
-
-build() {
- # Use samba-pkg as a staging directory for the split packages
- # (This is so RPATHS and symlinks are generated correctly via
- # make install, but the otherwise unsplit pieces can be split)
- _pkgsrc=${srcdir}/samba-pkg
- rm -rf ${_pkgsrc}
- cd ${srcdir}/samba-${pkgver}
- # change to use python2
- SAVEIFS=${IFS}
- IFS=$(echo -en "\n\b")
- PYTHON_CALLERS="$(find ${srcdir}/samba-${pkgver} -name '*.py')
-$(find ${srcdir}/samba-${pkgver} -name 'wscript*')
-$(find ${srcdir}/samba-${pkgver} -name 'configure.ac')
-$(find ${srcdir}/samba-${pkgver} -name 'upgrade_from_s3')
-$(find ${srcdir}/samba-${pkgver}/buildtools -type f)
-$(find ${srcdir}/samba-${pkgver}/source4/scripting -type f)"
- sed -i -e "s|/usr/bin/env python$|/usr/bin/env python2|" \
- -e "s|python-config|python2-config|" \
- -e "s|bin/python|bin/python2|" \
- ${PYTHON_CALLERS}
- IFS=${SAVEIFS}
-
- export PYTHON=/usr/bin/python2
-_samba4_idmap_modules=idmap_ad,idmap_rid,idmap_adex,idmap_hash,idmap_tdb2
-_samba4_pdb_modules=pdb_tdbsam,pdb_ldap,pdb_ads,pdb_smbpasswd,pdb_wbc_sam,pdb_samba4
-_samba4_auth_modules=auth_unix,auth_wbc,auth_server,auth_netlogond,auth_script,auth_samba4
- cd ${srcdir}/samba-${pkgver}
- ./configure --enable-fhs \
- --prefix=/usr \
- --sbindir=/usr/bin \
- --libdir=/usr/lib \
- --libexecdir=/usr/lib/samba \
- --localstatedir=/var \
- --with-configdir=/etc/samba \
- --with-lockdir=/var/cache/samba \
- --with-sockets-dir=/var/run/samba \
- --with-piddir=/var/run \
- --with-ads \
- --with-ldap \
- --with-winbind \
- --with-acl-support \
- --enable-gnutls \
- --with-pam \
- --with-pammodulesdir=/usr/lib/security \
- --bundled-libraries=!tdb,!talloc,!pytalloc-util,!tevent,!popt,!ldb,!pyldb-util \
- --with-shared-modules=${_samba4_idmap_modules},${_samba4_pdb_modules},${_samba4_auth_modules} \
- --disable-rpath-install
-
- # Add this to the options once it's working...
- #--with-system-mitkrb5 /opt/heimdal
- make
- make DESTDIR="${_pkgsrc}/" install
-
- # This gets skipped somehow
- if [ ! -e ${_pkgsrc}/usr/bin/smbtar ]; then
- install -m755 ${srcdir}/samba-${pkgver}/source3/script/smbtar ${_pkgsrc}/usr/bin/
- fi
-}
-
-package_libwbclient() {
-pkgdesc="Samba winbind client library"
-depends=('glibc' 'libbsd')
- # Use samba-pkg as a staging directory for the split packages
- # (This is so RPATHS and symlinks are generated correctly via
- # make install, but the otherwise unsplit pieces can be split)
- _pkgsrc=${srcdir}/samba-pkg
- install -d -m755 ${pkgdir}/usr/lib
- mv ${_pkgsrc}/usr/lib/libwbclient*.so* ${pkgdir}/usr/lib/
-
- install -d -m755 ${pkgdir}/usr/lib/samba
- mv ${_pkgsrc}/usr/lib/samba/libwinbind-client*.so* ${pkgdir}/usr/lib/samba/
- mv ${_pkgsrc}/usr/lib/samba/libreplace-samba4.so* ${pkgdir}/usr/lib/samba/
-
- install -d -m755 ${pkgdir}/usr/lib/pkgconfig
- mv ${_pkgsrc}/usr/lib/pkgconfig/wbclient.pc ${pkgdir}/usr/lib/pkgconfig/
-
- install -d -m755 ${pkgdir}/usr/include/samba-4.0
- mv ${_pkgsrc}/usr/include/samba-4.0/wbclient.h ${pkgdir}/usr/include/samba-4.0/
-}
-
-package_smbclient() {
-pkgdesc="Tools to access a server's filespace and printers via SMB"
-depends=('popt' 'cifs-utils' 'tdb' "libwbclient>=$pkgver" 'ldb'
- 'tevent' 'libgcrypt' 'python2' 'talloc' 'readline' 'gnutls'
- 'libbsd' 'libldap' 'libcups')
-
- _smbclient_bins=('smbclient' 'rpcclient' 'smbspool'
- 'smbtree' 'smbcacls' 'smbcquotas' 'smbget' 'net'
- 'nmblookup' 'smbtar')
- # Use samba-pkg as a staging directory for the split packages
- # (This is so RPATHS and symlinks are generated correctly via
- # make install, but the otherwise unsplit pieces can be split)
- _pkgsrc=${srcdir}/samba-pkg
- install -d -m755 ${pkgdir}/usr/bin
- for bin in ${_smbclient_bins[@]}; do
- mv ${_pkgsrc}/usr/bin/${bin} ${pkgdir}/usr/bin/
- done
-
- # smbclient binaries link to the majority of the samba
- # libs, so this is a shortcut instead of resolving the
- # whole dependency tree by hand
- install -d -m755 ${pkgdir}/usr/lib
- for lib in ${_pkgsrc}/usr/lib/lib*.so*; do
- mv ${lib} ${pkgdir}/usr/lib/
- done
-
- install -d -m755 ${pkgdir}/usr/lib/samba
- for lib in ${_pkgsrc}/usr/lib/samba/lib*.so*; do
- mv ${lib} ${pkgdir}/usr/lib/samba/
- done
-
- install -d -m755 ${pkgdir}/usr/lib/pkgconfig
- mv ${_pkgsrc}/usr/lib/pkgconfig/smbclient.pc ${pkgdir}/usr/lib/pkgconfig/
- mv ${_pkgsrc}/usr/lib/pkgconfig/netapi.pc ${pkgdir}/usr/lib/pkgconfig/
-
- install -d -m755 ${pkgdir}/usr/share/man/man1
- install -d -m755 ${pkgdir}/usr/share/man/man7
- install -d -m755 ${pkgdir}/usr/share/man/man8
- for bin in ${_smbclient_bins[@]}; do
- if [ -e ${_pkgsrc}/usr/share/man/man1/${bin}.1 ]; then
- mv ${_pkgsrc}/usr/share/man/man1/${bin}.1 ${pkgdir}/usr/share/man/man1/
- fi
- if [ -e ${_pkgsrc}/usr/share/man/man8/${bin}.8 ]; then
- mv ${_pkgsrc}/usr/share/man/man8/${bin}.8 ${pkgdir}/usr/share/man/man8/
- fi
- done
- mv ${_pkgsrc}/usr/share/man/man7/libsmbclient.7 ${pkgdir}/usr/share/man/man7/
-
- install -d -m755 ${pkgdir}/usr/include/samba-4.0
- mv ${_pkgsrc}/usr/include/samba-4.0/libsmbclient.h ${pkgdir}/usr/include/samba-4.0/
- mv ${_pkgsrc}/usr/include/samba-4.0/netapi.h ${pkgdir}/usr/include/samba-4.0/
-
- mkdir -p ${pkgdir}/usr/lib/cups/backend
- ln -sf /usr/bin/smbspool ${pkgdir}/usr/lib/cups/backend/smb
-}
-
-package_samba() {
-pkgdesc="SMB Fileserver and AD Domain server"
-depends=('db>=4.7' 'popt' 'libcups' 'libcap>=2.16' 'gamin' 'gnutls>=2.4.1'
- 'talloc' 'ldb' 'libbsd' 'python2' 'iniparser' 'tdb' 'libaio' 'perl-parse-yapp' "smbclient>=$pkgver")
-backup=(etc/logrotate.d/samba
- etc/pam.d/samba
- etc/samba/smb.conf
- etc/xinetd.d/swat
- etc/conf.d/samba)
-install=samba.install
- # Use samba-pkg as a staging directory for the split packages
- # (This is so RPATHS and symlinks are generated correctly via
- # make install, but the otherwise unsplit pieces can be split)
- _pkgsrc=${srcdir}/samba-pkg
- # Everything that libwbclient and smbclient didn't install goes
- # into the samba package...
- mv ${_pkgsrc}/* ${pkgdir}/
- rmdir ${_pkgsrc}
-
- _pyver=`python2 -c 'import sys; print(sys.version[:3])'`
-
- find ${pkgdir}/usr/lib/python${_pyver}/site-packages/ -name '*.py' | \
- xargs sed -i "s|#!/usr/bin/env python$|#!/usr/bin/env python2|"
- find ${pkgdir}/usr/bin ${pkgdir}/usr/bin -type f -executable | \
- xargs sed -i "s|#!/usr/bin/env python$|#!/usr/bin/env python2|"
-
- # Make admin scripts look in the right place for the samba python module
- for script in bin/samba_dnsupdate bin/samba_kcc bin/samba_spnupdate \
- bin/samba_upgradedns bin/samba-tool
- do
- sed -i "/^sys\.path\.insert/ a\
-sys.path.insert(0, '/usr/lib/python${_pyver}/site-packages')" \
- ${pkgdir}/usr/${script}
- done
-
- # install systemd files
- install -d -m755 ${pkgdir}/usr/lib/systemd/system
- #for i in smbd nmbd winbindd; do
- install -m644 ${srcdir}/*.service ${pkgdir}/usr/lib/systemd/system/
- install -m644 ${srcdir}/*.socket ${pkgdir}/usr/lib/systemd/system/
- install -d -m755 ${pkgdir}/etc/conf.d
- install -m644 ${srcdir}/samba.conf.d ${pkgdir}/etc/conf.d/samba
- #done
- # create ephemeral dirs via tmpfiles rather than shipping them in package
- install -D -m644 ${srcdir}/samba.conf ${pkgdir}/usr/lib/tmpfiles.d/samba.conf
- # install sample smb.conf
- install -d -m755 ${pkgdir}/etc/samba
- install -m644 ${srcdir}/samba-${pkgver}/packaging/LSB/smb.conf ${pkgdir}/etc/samba/smb.conf.default
-
- mkdir -p ${pkgdir}/etc/samba/private
- chmod 700 ${pkgdir}/etc/samba/private
-
- install -D -m644 ${srcdir}/samba.logrotate ${pkgdir}/etc/logrotate.d/samba
- install -D -m644 ${srcdir}/samba.pam ${pkgdir}/etc/pam.d/samba
-
- # winbind krb5 locator
- mkdir -p ${pkgdir}/usr/lib/krb5/plugins/libkrb5
- mv ${pkgdir}/usr/lib/*.so ${pkgdir}/usr/lib/krb5/plugins/libkrb5/
-
- # fix logrotate
- sed -i -e 's|log.%m|%m.log|g' ${pkgdir}/etc/samba/smb.conf.default
-
- # spool directory
- install -d -m1777 ${pkgdir}/var/spool/samba
-
- rm -rf ${pkgdir}/var/run
-
- # copy ldap example
- install -D -m644 ${srcdir}/samba-${pkgver}/examples/LDAP/samba.schema ${pkgdir}/usr/share/doc/samba/examples/LDAP/samba.schema
-}
-md5sums=('c6ee5c766016d59908c8fb672fbbd445'
- 'SKIP'
- '5697da77590ec092cc8a883bae06093c'
- '96f82c38f3f540b53f3e5144900acf17'
- 'ee4763a656cf00d92bfda31b6bb2c5cb'
- '6c447748a064d631435dbef0a3dcf32f'
- 'e4ae6a3cac080602120aa151918c4a36'
- 'a78b9aa93eb14b0ac445897395693225'
- 'df6380c73cb73163968eabc8650f7358'
- '70afd2db60a2e8eff7615dbdecd887ac'
- 'd5f56f43e1280bba20f6bbd88d16fa41'
- '49abd7b719e3713a3f75a8a50958e381')
Copied: samba/repos/extra-i686/PKGBUILD (from rev 301905, samba/trunk/PKGBUILD)
===================================================================
--- extra-i686/PKGBUILD (rev 0)
+++ extra-i686/PKGBUILD 2017-08-11 09:56:32 UTC (rev 301906)
@@ -0,0 +1,257 @@
+
+# Maintainer: Tobias Powalowski <tpowa at archlinux.org>
+# Contributor: judd <jvinet at zeroflux.org>
+# Contributor: Michael Hansen <zrax0111 gmail com>
+# Contributor: Marco A Rojas <marquicus at gmail.com>
+# Contributor: Netanel Shine <netanel at archlinux.org.il >
+# Contributor: ngoonee <ngoonee.talk at gmail.com>
+# Contributor: Adam Russell <adamlr6+arch at gmail.com>
+# Contributor: Dhananjay Sathe <dhananjaysathe at gmail.com>
+
+pkgbase=samba
+pkgname=('libwbclient' 'smbclient' 'samba')
+pkgver=4.6.7
+pkgrel=1
+arch=(i686 x86_64)
+url="http://www.samba.org"
+license=('GPL3')
+makedepends=('python2' 'docbook-xsl' 'pkg-config' 'libbsd' 'db' 'popt' 'libcups'
+ 'readline' 'tevent' 'acl' 'libldap' 'libcap' 'ldb>=1.1.15' 'krb5' 'pam' 'systemd'
+ 'gamin' 'gnutls>=2.4.1' 'talloc' 'tdb' 'dbus' 'libaio' 'perl-parse-yapp')
+source=(http://us1.samba.org/samba/ftp/stable/${pkgbase}-${pkgver}.tar.gz
+ http://us1.samba.org/samba/ftp/stable/${pkgbase}-${pkgver}.tar.asc
+ samba.logrotate
+ samba.pam
+ samba.service
+ samba.conf.d
+ smbd.service
+ smbd.socket
+ nmbd.service
+ smbd at .service
+ winbindd.service
+ samba.conf)
+validpgpkeys=('52FBC0B86D954B0843324CDC6F33915B6568B7EA') #Samba Distribution Verification Key <samba-bugs at samba.org>
+### UNINSTALL dmapi package before building!!!
+
+prepare() {
+ cd samba-${pkgver}
+}
+
+build() {
+ # Use samba-pkg as a staging directory for the split packages
+ # (This is so RPATHS and symlinks are generated correctly via
+ # make install, but the otherwise unsplit pieces can be split)
+ _pkgsrc=${srcdir}/samba-pkg
+ rm -rf ${_pkgsrc}
+ cd ${srcdir}/samba-${pkgver}
+ # change to use python2
+ SAVEIFS=${IFS}
+ IFS=$(echo -en "\n\b")
+ PYTHON_CALLERS="$(find ${srcdir}/samba-${pkgver} -name '*.py')
+$(find ${srcdir}/samba-${pkgver} -name 'wscript*')
+$(find ${srcdir}/samba-${pkgver} -name 'configure.ac')
+$(find ${srcdir}/samba-${pkgver} -name 'upgrade_from_s3')
+$(find ${srcdir}/samba-${pkgver}/buildtools -type f)
+$(find ${srcdir}/samba-${pkgver}/source4/scripting -type f)"
+ sed -i -e "s|/usr/bin/env python$|/usr/bin/env python2|" \
+ -e "s|python-config|python2-config|" \
+ -e "s|bin/python|bin/python2|" \
+ ${PYTHON_CALLERS}
+ IFS=${SAVEIFS}
+
+ export PYTHON=/usr/bin/python2
+_samba4_idmap_modules=idmap_ad,idmap_rid,idmap_adex,idmap_hash,idmap_tdb2
+_samba4_pdb_modules=pdb_tdbsam,pdb_ldap,pdb_ads,pdb_smbpasswd,pdb_wbc_sam,pdb_samba4
+_samba4_auth_modules=auth_unix,auth_wbc,auth_server,auth_netlogond,auth_script,auth_samba4
+ cd ${srcdir}/samba-${pkgver}
+ ./configure --enable-fhs \
+ --prefix=/usr \
+ --sbindir=/usr/bin \
+ --libdir=/usr/lib \
+ --libexecdir=/usr/lib/samba \
+ --localstatedir=/var \
+ --with-configdir=/etc/samba \
+ --with-lockdir=/var/cache/samba \
+ --with-sockets-dir=/var/run/samba \
+ --with-piddir=/var/run \
+ --with-ads \
+ --with-ldap \
+ --with-winbind \
+ --with-acl-support \
+ --enable-gnutls \
+ --with-pam \
+ --with-pammodulesdir=/usr/lib/security \
+ --bundled-libraries=!tdb,!talloc,!pytalloc-util,!tevent,!popt,!ldb,!pyldb-util \
+ --with-shared-modules=${_samba4_idmap_modules},${_samba4_pdb_modules},${_samba4_auth_modules} \
+ --disable-rpath-install
+
+ # Add this to the options once it's working...
+ #--with-system-mitkrb5 /opt/heimdal
+ make
+ make DESTDIR="${_pkgsrc}/" install
+
+ # This gets skipped somehow
+ if [ ! -e ${_pkgsrc}/usr/bin/smbtar ]; then
+ install -m755 ${srcdir}/samba-${pkgver}/source3/script/smbtar ${_pkgsrc}/usr/bin/
+ fi
+}
+
+package_libwbclient() {
+pkgdesc="Samba winbind client library"
+depends=('glibc' 'libbsd')
+ # Use samba-pkg as a staging directory for the split packages
+ # (This is so RPATHS and symlinks are generated correctly via
+ # make install, but the otherwise unsplit pieces can be split)
+ _pkgsrc=${srcdir}/samba-pkg
+ install -d -m755 ${pkgdir}/usr/lib
+ mv ${_pkgsrc}/usr/lib/libwbclient*.so* ${pkgdir}/usr/lib/
+
+ install -d -m755 ${pkgdir}/usr/lib/samba
+ mv ${_pkgsrc}/usr/lib/samba/libwinbind-client*.so* ${pkgdir}/usr/lib/samba/
+ mv ${_pkgsrc}/usr/lib/samba/libreplace-samba4.so* ${pkgdir}/usr/lib/samba/
+
+ install -d -m755 ${pkgdir}/usr/lib/pkgconfig
+ mv ${_pkgsrc}/usr/lib/pkgconfig/wbclient.pc ${pkgdir}/usr/lib/pkgconfig/
+
+ install -d -m755 ${pkgdir}/usr/include/samba-4.0
+ mv ${_pkgsrc}/usr/include/samba-4.0/wbclient.h ${pkgdir}/usr/include/samba-4.0/
+}
+
+package_smbclient() {
+pkgdesc="Tools to access a server's filespace and printers via SMB"
+depends=('popt' 'cifs-utils' 'tdb' "libwbclient>=$pkgver" 'ldb'
+ 'tevent' 'libgcrypt' 'python2' 'talloc' 'readline' 'gnutls'
+ 'libbsd' 'libldap' 'libcups')
+
+ _smbclient_bins=('smbclient' 'rpcclient' 'smbspool'
+ 'smbtree' 'smbcacls' 'smbcquotas' 'smbget' 'net'
+ 'nmblookup' 'smbtar')
+ # Use samba-pkg as a staging directory for the split packages
+ # (This is so RPATHS and symlinks are generated correctly via
+ # make install, but the otherwise unsplit pieces can be split)
+ _pkgsrc=${srcdir}/samba-pkg
+ install -d -m755 ${pkgdir}/usr/bin
+ for bin in ${_smbclient_bins[@]}; do
+ mv ${_pkgsrc}/usr/bin/${bin} ${pkgdir}/usr/bin/
+ done
+
+ # smbclient binaries link to the majority of the samba
+ # libs, so this is a shortcut instead of resolving the
+ # whole dependency tree by hand
+ install -d -m755 ${pkgdir}/usr/lib
+ for lib in ${_pkgsrc}/usr/lib/lib*.so*; do
+ mv ${lib} ${pkgdir}/usr/lib/
+ done
+
+ install -d -m755 ${pkgdir}/usr/lib/samba
+ for lib in ${_pkgsrc}/usr/lib/samba/lib*.so*; do
+ mv ${lib} ${pkgdir}/usr/lib/samba/
+ done
+
+ install -d -m755 ${pkgdir}/usr/lib/pkgconfig
+ mv ${_pkgsrc}/usr/lib/pkgconfig/smbclient.pc ${pkgdir}/usr/lib/pkgconfig/
+ mv ${_pkgsrc}/usr/lib/pkgconfig/netapi.pc ${pkgdir}/usr/lib/pkgconfig/
+
+ install -d -m755 ${pkgdir}/usr/share/man/man1
+ install -d -m755 ${pkgdir}/usr/share/man/man7
+ install -d -m755 ${pkgdir}/usr/share/man/man8
+ for bin in ${_smbclient_bins[@]}; do
+ if [ -e ${_pkgsrc}/usr/share/man/man1/${bin}.1 ]; then
+ mv ${_pkgsrc}/usr/share/man/man1/${bin}.1 ${pkgdir}/usr/share/man/man1/
+ fi
+ if [ -e ${_pkgsrc}/usr/share/man/man8/${bin}.8 ]; then
+ mv ${_pkgsrc}/usr/share/man/man8/${bin}.8 ${pkgdir}/usr/share/man/man8/
+ fi
+ done
+ mv ${_pkgsrc}/usr/share/man/man7/libsmbclient.7 ${pkgdir}/usr/share/man/man7/
+
+ install -d -m755 ${pkgdir}/usr/include/samba-4.0
+ mv ${_pkgsrc}/usr/include/samba-4.0/libsmbclient.h ${pkgdir}/usr/include/samba-4.0/
+ mv ${_pkgsrc}/usr/include/samba-4.0/netapi.h ${pkgdir}/usr/include/samba-4.0/
+
+ mkdir -p ${pkgdir}/usr/lib/cups/backend
+ ln -sf /usr/bin/smbspool ${pkgdir}/usr/lib/cups/backend/smb
+}
+
+package_samba() {
+pkgdesc="SMB Fileserver and AD Domain server"
+depends=('db>=4.7' 'popt' 'libcups' 'libcap>=2.16' 'gamin' 'gnutls>=2.4.1'
+ 'talloc' 'ldb' 'libbsd' 'python2' 'iniparser' 'tdb' 'libaio' 'perl-parse-yapp' "smbclient>=$pkgver")
+backup=(etc/logrotate.d/samba
+ etc/pam.d/samba
+ etc/samba/smb.conf
+ etc/xinetd.d/swat
+ etc/conf.d/samba)
+install=samba.install
+ # Use samba-pkg as a staging directory for the split packages
+ # (This is so RPATHS and symlinks are generated correctly via
+ # make install, but the otherwise unsplit pieces can be split)
+ _pkgsrc=${srcdir}/samba-pkg
+ # Everything that libwbclient and smbclient didn't install goes
+ # into the samba package...
+ mv ${_pkgsrc}/* ${pkgdir}/
+ rmdir ${_pkgsrc}
+
+ _pyver=`python2 -c 'import sys; print(sys.version[:3])'`
+
+ find ${pkgdir}/usr/lib/python${_pyver}/site-packages/ -name '*.py' | \
+ xargs sed -i "s|#!/usr/bin/env python$|#!/usr/bin/env python2|"
+ find ${pkgdir}/usr/bin ${pkgdir}/usr/bin -type f -executable | \
+ xargs sed -i "s|#!/usr/bin/env python$|#!/usr/bin/env python2|"
+
+ # Make admin scripts look in the right place for the samba python module
+ for script in bin/samba_dnsupdate bin/samba_kcc bin/samba_spnupdate \
+ bin/samba_upgradedns bin/samba-tool
+ do
+ sed -i "/^sys\.path\.insert/ a\
+sys.path.insert(0, '/usr/lib/python${_pyver}/site-packages')" \
+ ${pkgdir}/usr/${script}
+ done
+
+ # install systemd files
+ install -d -m755 ${pkgdir}/usr/lib/systemd/system
+ #for i in smbd nmbd winbindd; do
+ install -m644 ${srcdir}/*.service ${pkgdir}/usr/lib/systemd/system/
+ install -m644 ${srcdir}/*.socket ${pkgdir}/usr/lib/systemd/system/
+ install -d -m755 ${pkgdir}/etc/conf.d
+ install -m644 ${srcdir}/samba.conf.d ${pkgdir}/etc/conf.d/samba
+ #done
+ # create ephemeral dirs via tmpfiles rather than shipping them in package
+ install -D -m644 ${srcdir}/samba.conf ${pkgdir}/usr/lib/tmpfiles.d/samba.conf
+ # install sample smb.conf
+ install -d -m755 ${pkgdir}/etc/samba
+ install -m644 ${srcdir}/samba-${pkgver}/packaging/LSB/smb.conf ${pkgdir}/etc/samba/smb.conf.default
+
+ mkdir -p ${pkgdir}/etc/samba/private
+ chmod 700 ${pkgdir}/etc/samba/private
+
+ install -D -m644 ${srcdir}/samba.logrotate ${pkgdir}/etc/logrotate.d/samba
+ install -D -m644 ${srcdir}/samba.pam ${pkgdir}/etc/pam.d/samba
+
+ # winbind krb5 locator
+ mkdir -p ${pkgdir}/usr/lib/krb5/plugins/libkrb5
+ mv ${pkgdir}/usr/lib/*.so ${pkgdir}/usr/lib/krb5/plugins/libkrb5/
+
+ # fix logrotate
+ sed -i -e 's|log.%m|%m.log|g' ${pkgdir}/etc/samba/smb.conf.default
+
+ # spool directory
+ install -d -m1777 ${pkgdir}/var/spool/samba
+
+ rm -rf ${pkgdir}/var/run
+
+ # copy ldap example
+ install -D -m644 ${srcdir}/samba-${pkgver}/examples/LDAP/samba.schema ${pkgdir}/usr/share/doc/samba/examples/LDAP/samba.schema
+}
+md5sums=('c6ee5c766016d59908c8fb672fbbd445'
+ 'SKIP'
+ '5697da77590ec092cc8a883bae06093c'
+ '96f82c38f3f540b53f3e5144900acf17'
+ 'ee4763a656cf00d92bfda31b6bb2c5cb'
+ '6c447748a064d631435dbef0a3dcf32f'
+ 'e4ae6a3cac080602120aa151918c4a36'
+ 'a78b9aa93eb14b0ac445897395693225'
+ 'df6380c73cb73163968eabc8650f7358'
+ '70afd2db60a2e8eff7615dbdecd887ac'
+ 'd5f56f43e1280bba20f6bbd88d16fa41'
+ '49abd7b719e3713a3f75a8a50958e381')
Deleted: extra-i686/nmbd.service
===================================================================
--- extra-i686/nmbd.service 2017-08-11 09:49:53 UTC (rev 301905)
+++ extra-i686/nmbd.service 2017-08-11 09:56:32 UTC (rev 301906)
@@ -1,12 +0,0 @@
-[Unit]
-Description=Samba NetBIOS name server
-After=network.target
-
-[Service]
-Type=forking
-PIDFile=/var/run/nmbd.pid
-ExecStart=/usr/bin/nmbd -D
-ExecReload=/bin/kill -HUP $MAINPID
-
-[Install]
-WantedBy=multi-user.target
Copied: samba/repos/extra-i686/nmbd.service (from rev 301905, samba/trunk/nmbd.service)
===================================================================
--- extra-i686/nmbd.service (rev 0)
+++ extra-i686/nmbd.service 2017-08-11 09:56:32 UTC (rev 301906)
@@ -0,0 +1,12 @@
+[Unit]
+Description=Samba NetBIOS name server
+After=network.target
+
+[Service]
+Type=forking
+PIDFile=/var/run/nmbd.pid
+ExecStart=/usr/bin/nmbd -D
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target
Deleted: extra-i686/samba.conf
===================================================================
--- extra-i686/samba.conf 2017-08-11 09:49:53 UTC (rev 301905)
+++ extra-i686/samba.conf 2017-08-11 09:56:32 UTC (rev 301906)
@@ -1,2 +0,0 @@
-D /run/samba 0755 - - -
-d /var/log/samba 0755 - - -
\ No newline at end of file
Copied: samba/repos/extra-i686/samba.conf (from rev 301905, samba/trunk/samba.conf)
===================================================================
--- extra-i686/samba.conf (rev 0)
+++ extra-i686/samba.conf 2017-08-11 09:56:32 UTC (rev 301906)
@@ -0,0 +1,2 @@
+D /run/samba 0755 - - -
+d /var/log/samba 0755 - - -
\ No newline at end of file
Deleted: extra-i686/samba.conf.d
===================================================================
--- extra-i686/samba.conf.d 2017-08-11 09:49:53 UTC (rev 301905)
+++ extra-i686/samba.conf.d 2017-08-11 09:56:32 UTC (rev 301906)
@@ -1,18 +0,0 @@
-## Path: Network/Samba
-## Description: Samba process options
-## Type: string
-## Default: ""
-## ServiceRestart: samba
-SAMBAOPTIONS=""
-## Type: string
-## Default: ""
-## ServiceRestart: smb
-SMBDOPTIONS=""
-## Type: string
-## Default: ""
-## ServiceRestart: nmb
-NMBDOPTIONS=""
-## Type: string
-## Default: ""
-## ServiceRestart: winbind
-WINBINDOPTIONS=""
Copied: samba/repos/extra-i686/samba.conf.d (from rev 301905, samba/trunk/samba.conf.d)
===================================================================
--- extra-i686/samba.conf.d (rev 0)
+++ extra-i686/samba.conf.d 2017-08-11 09:56:32 UTC (rev 301906)
@@ -0,0 +1,18 @@
+## Path: Network/Samba
+## Description: Samba process options
+## Type: string
+## Default: ""
+## ServiceRestart: samba
+SAMBAOPTIONS=""
+## Type: string
+## Default: ""
+## ServiceRestart: smb
+SMBDOPTIONS=""
+## Type: string
+## Default: ""
+## ServiceRestart: nmb
+NMBDOPTIONS=""
+## Type: string
+## Default: ""
+## ServiceRestart: winbind
+WINBINDOPTIONS=""
Deleted: extra-i686/samba.install
===================================================================
--- extra-i686/samba.install 2017-08-11 09:49:53 UTC (rev 301905)
+++ extra-i686/samba.install 2017-08-11 09:56:32 UTC (rev 301906)
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-post_upgrade() {
- if [ "$(vercmp $2 4.0.4)" -lt 0 ]; then
- echo "Major upgrade from samba 3.x to 4.x,"
- echo "please read the Samba4 migration guide:"
- echo "http://wiki.samba.org/index.php/Samba4/samba3upgrade/HOWTO"
- fi
-}
-# vim:set ts=2 sw=2 et:
Copied: samba/repos/extra-i686/samba.install (from rev 301905, samba/trunk/samba.install)
===================================================================
--- extra-i686/samba.install (rev 0)
+++ extra-i686/samba.install 2017-08-11 09:56:32 UTC (rev 301906)
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+post_upgrade() {
+ if [ "$(vercmp $2 4.0.4)" -lt 0 ]; then
+ echo "Major upgrade from samba 3.x to 4.x,"
+ echo "please read the Samba4 migration guide:"
+ echo "http://wiki.samba.org/index.php/Samba4/samba3upgrade/HOWTO"
+ fi
+}
+# vim:set ts=2 sw=2 et:
Deleted: extra-i686/samba.logrotate
===================================================================
--- extra-i686/samba.logrotate 2017-08-11 09:49:53 UTC (rev 301905)
+++ extra-i686/samba.logrotate 2017-08-11 09:56:32 UTC (rev 301906)
@@ -1,9 +0,0 @@
-/var/log/samba/log.smbd /var/log/samba/log.nmbd /var/log/samba/*.log {
- notifempty
- missingok
- sharedscripts
- copytruncate
- postrotate
- /bin/kill -HUP `cat /var/run/samba/*.pid 2>/dev/null` 2>/dev/null || true
- endscript
-}
Copied: samba/repos/extra-i686/samba.logrotate (from rev 301905, samba/trunk/samba.logrotate)
===================================================================
--- extra-i686/samba.logrotate (rev 0)
+++ extra-i686/samba.logrotate 2017-08-11 09:56:32 UTC (rev 301906)
@@ -0,0 +1,9 @@
+/var/log/samba/log.smbd /var/log/samba/log.nmbd /var/log/samba/*.log {
+ notifempty
+ missingok
+ sharedscripts
+ copytruncate
+ postrotate
+ /bin/kill -HUP `cat /var/run/samba/*.pid 2>/dev/null` 2>/dev/null || true
+ endscript
+}
Deleted: extra-i686/samba.pam
===================================================================
--- extra-i686/samba.pam 2017-08-11 09:49:53 UTC (rev 301905)
+++ extra-i686/samba.pam 2017-08-11 09:56:32 UTC (rev 301906)
@@ -1,3 +0,0 @@
-auth required pam_unix.so
-account required pam_unix.so
-session required pam_unix.so
Copied: samba/repos/extra-i686/samba.pam (from rev 301905, samba/trunk/samba.pam)
===================================================================
--- extra-i686/samba.pam (rev 0)
+++ extra-i686/samba.pam 2017-08-11 09:56:32 UTC (rev 301906)
@@ -0,0 +1,3 @@
+auth required pam_unix.so
+account required pam_unix.so
+session required pam_unix.so
Deleted: extra-i686/samba.service
===================================================================
--- extra-i686/samba.service 2017-08-11 09:49:53 UTC (rev 301905)
+++ extra-i686/samba.service 2017-08-11 09:56:32 UTC (rev 301906)
@@ -1,14 +0,0 @@
-[Unit]
-Description=Samba AD Daemon
-After=syslog.target network.target
-
-[Service]
-Type=forking
-PIDFile=/var/run/samba.pid
-LimitNOFILE=16384
-EnvironmentFile=-/etc/conf.d/samba
-ExecStart=/usr/bin/samba $SAMBAOPTIONS
-ExecReload=/usr/bin/kill -HUP $MAINPID
-
-[Install]
-WantedBy=multi-user.target
Copied: samba/repos/extra-i686/samba.service (from rev 301905, samba/trunk/samba.service)
===================================================================
--- extra-i686/samba.service (rev 0)
+++ extra-i686/samba.service 2017-08-11 09:56:32 UTC (rev 301906)
@@ -0,0 +1,14 @@
+[Unit]
+Description=Samba AD Daemon
+After=syslog.target network.target
+
+[Service]
+Type=forking
+PIDFile=/var/run/samba.pid
+LimitNOFILE=16384
+EnvironmentFile=-/etc/conf.d/samba
+ExecStart=/usr/bin/samba $SAMBAOPTIONS
+ExecReload=/usr/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target
Deleted: extra-i686/smbd.service
===================================================================
--- extra-i686/smbd.service 2017-08-11 09:49:53 UTC (rev 301905)
+++ extra-i686/smbd.service 2017-08-11 09:56:32 UTC (rev 301906)
@@ -1,12 +0,0 @@
-[Unit]
-Description=Samba SMB/CIFS server
-After=network.target nmbd.service winbindd.service
-
-[Service]
-Type=forking
-PIDFile=/var/run/smbd.pid
-ExecStart=/usr/bin/smbd -D
-ExecReload=/bin/kill -HUP $MAINPID
-
-[Install]
-WantedBy=multi-user.target
Copied: samba/repos/extra-i686/smbd.service (from rev 301905, samba/trunk/smbd.service)
===================================================================
--- extra-i686/smbd.service (rev 0)
+++ extra-i686/smbd.service 2017-08-11 09:56:32 UTC (rev 301906)
@@ -0,0 +1,12 @@
+[Unit]
+Description=Samba SMB/CIFS server
+After=network.target nmbd.service winbindd.service
+
+[Service]
+Type=forking
+PIDFile=/var/run/smbd.pid
+ExecStart=/usr/bin/smbd -D
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target
Deleted: extra-i686/smbd.socket
===================================================================
--- extra-i686/smbd.socket 2017-08-11 09:49:53 UTC (rev 301905)
+++ extra-i686/smbd.socket 2017-08-11 09:56:32 UTC (rev 301906)
@@ -1,9 +0,0 @@
-[Unit]
-Description=Samba SMB/CIFS server socket
-
-[Socket]
-ListenStream=445
-Accept=yes
-
-[Install]
-WantedBy=sockets.target
Copied: samba/repos/extra-i686/smbd.socket (from rev 301905, samba/trunk/smbd.socket)
===================================================================
--- extra-i686/smbd.socket (rev 0)
+++ extra-i686/smbd.socket 2017-08-11 09:56:32 UTC (rev 301906)
@@ -0,0 +1,9 @@
+[Unit]
+Description=Samba SMB/CIFS server socket
+
+[Socket]
+ListenStream=445
+Accept=yes
+
+[Install]
+WantedBy=sockets.target
Deleted: extra-i686/smbd at .service
===================================================================
--- extra-i686/smbd at .service 2017-08-11 09:49:53 UTC (rev 301905)
+++ extra-i686/smbd at .service 2017-08-11 09:56:32 UTC (rev 301906)
@@ -1,7 +0,0 @@
-[Unit]
-Description=Samba SMB/CIFS server instance
-
-[Service]
-ExecStart=/usr/bin/smbd -F
-ExecReload=/bin/kill -HUP $MAINPID
-StandardInput=socket
Copied: samba/repos/extra-i686/smbd at .service (from rev 301905, samba/trunk/smbd at .service)
===================================================================
--- extra-i686/smbd at .service (rev 0)
+++ extra-i686/smbd at .service 2017-08-11 09:56:32 UTC (rev 301906)
@@ -0,0 +1,7 @@
+[Unit]
+Description=Samba SMB/CIFS server instance
+
+[Service]
+ExecStart=/usr/bin/smbd -F
+ExecReload=/bin/kill -HUP $MAINPID
+StandardInput=socket
Deleted: extra-i686/winbindd.service
===================================================================
--- extra-i686/winbindd.service 2017-08-11 09:49:53 UTC (rev 301905)
+++ extra-i686/winbindd.service 2017-08-11 09:56:32 UTC (rev 301906)
@@ -1,12 +0,0 @@
-[Unit]
-Description=Samba Winbind daemon
-After=network.target nmbd.service
-
-[Service]
-Type=forking
-PIDFile=/var/run/winbindd.pid
-ExecStart=/usr/bin/winbindd -D
-ExecReload=/bin/kill -HUP $MAINPID
-
-[Install]
-WantedBy=multi-user.target
Copied: samba/repos/extra-i686/winbindd.service (from rev 301905, samba/trunk/winbindd.service)
===================================================================
--- extra-i686/winbindd.service (rev 0)
+++ extra-i686/winbindd.service 2017-08-11 09:56:32 UTC (rev 301906)
@@ -0,0 +1,12 @@
+[Unit]
+Description=Samba Winbind daemon
+After=network.target nmbd.service
+
+[Service]
+Type=forking
+PIDFile=/var/run/winbindd.pid
+ExecStart=/usr/bin/winbindd -D
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target
Deleted: extra-x86_64/PKGBUILD
===================================================================
--- extra-x86_64/PKGBUILD 2017-08-11 09:49:53 UTC (rev 301905)
+++ extra-x86_64/PKGBUILD 2017-08-11 09:56:32 UTC (rev 301906)
@@ -1,257 +0,0 @@
-
-# Maintainer: Tobias Powalowski <tpowa at archlinux.org>
-# Contributor: judd <jvinet at zeroflux.org>
-# Contributor: Michael Hansen <zrax0111 gmail com>
-# Contributor: Marco A Rojas <marquicus at gmail.com>
-# Contributor: Netanel Shine <netanel at archlinux.org.il >
-# Contributor: ngoonee <ngoonee.talk at gmail.com>
-# Contributor: Adam Russell <adamlr6+arch at gmail.com>
-# Contributor: Dhananjay Sathe <dhananjaysathe at gmail.com>
-
-pkgbase=samba
-pkgname=('libwbclient' 'smbclient' 'samba')
-pkgver=4.6.7
-pkgrel=1
-arch=(i686 x86_64)
-url="http://www.samba.org"
-license=('GPL3')
-makedepends=('python2' 'docbook-xsl' 'pkg-config' 'libbsd' 'db' 'popt' 'libcups'
- 'readline' 'tevent' 'acl' 'libldap' 'libcap' 'ldb>=1.1.15' 'krb5' 'pam' 'systemd'
- 'gamin' 'gnutls>=2.4.1' 'talloc' 'tdb' 'dbus' 'libaio' 'perl-parse-yapp')
-source=(http://us1.samba.org/samba/ftp/stable/${pkgbase}-${pkgver}.tar.gz
- http://us1.samba.org/samba/ftp/stable/${pkgbase}-${pkgver}.tar.asc
- samba.logrotate
- samba.pam
- samba.service
- samba.conf.d
- smbd.service
- smbd.socket
- nmbd.service
- smbd at .service
- winbindd.service
- samba.conf)
-validpgpkeys=('52FBC0B86D954B0843324CDC6F33915B6568B7EA') #Samba Distribution Verification Key <samba-bugs at samba.org>
-### UNINSTALL dmapi package before building!!!
-
-prepare() {
- cd samba-${pkgver}
-}
-
-build() {
- # Use samba-pkg as a staging directory for the split packages
- # (This is so RPATHS and symlinks are generated correctly via
- # make install, but the otherwise unsplit pieces can be split)
- _pkgsrc=${srcdir}/samba-pkg
- rm -rf ${_pkgsrc}
- cd ${srcdir}/samba-${pkgver}
- # change to use python2
- SAVEIFS=${IFS}
- IFS=$(echo -en "\n\b")
- PYTHON_CALLERS="$(find ${srcdir}/samba-${pkgver} -name '*.py')
-$(find ${srcdir}/samba-${pkgver} -name 'wscript*')
-$(find ${srcdir}/samba-${pkgver} -name 'configure.ac')
-$(find ${srcdir}/samba-${pkgver} -name 'upgrade_from_s3')
-$(find ${srcdir}/samba-${pkgver}/buildtools -type f)
-$(find ${srcdir}/samba-${pkgver}/source4/scripting -type f)"
- sed -i -e "s|/usr/bin/env python$|/usr/bin/env python2|" \
- -e "s|python-config|python2-config|" \
- -e "s|bin/python|bin/python2|" \
- ${PYTHON_CALLERS}
- IFS=${SAVEIFS}
-
- export PYTHON=/usr/bin/python2
-_samba4_idmap_modules=idmap_ad,idmap_rid,idmap_adex,idmap_hash,idmap_tdb2
-_samba4_pdb_modules=pdb_tdbsam,pdb_ldap,pdb_ads,pdb_smbpasswd,pdb_wbc_sam,pdb_samba4
-_samba4_auth_modules=auth_unix,auth_wbc,auth_server,auth_netlogond,auth_script,auth_samba4
- cd ${srcdir}/samba-${pkgver}
- ./configure --enable-fhs \
- --prefix=/usr \
- --sbindir=/usr/bin \
- --libdir=/usr/lib \
- --libexecdir=/usr/lib/samba \
- --localstatedir=/var \
- --with-configdir=/etc/samba \
- --with-lockdir=/var/cache/samba \
- --with-sockets-dir=/var/run/samba \
- --with-piddir=/var/run \
- --with-ads \
- --with-ldap \
- --with-winbind \
- --with-acl-support \
- --enable-gnutls \
- --with-pam \
- --with-pammodulesdir=/usr/lib/security \
- --bundled-libraries=!tdb,!talloc,!pytalloc-util,!tevent,!popt,!ldb,!pyldb-util \
- --with-shared-modules=${_samba4_idmap_modules},${_samba4_pdb_modules},${_samba4_auth_modules} \
- --disable-rpath-install
-
- # Add this to the options once it's working...
- #--with-system-mitkrb5 /opt/heimdal
- make
- make DESTDIR="${_pkgsrc}/" install
-
- # This gets skipped somehow
- if [ ! -e ${_pkgsrc}/usr/bin/smbtar ]; then
- install -m755 ${srcdir}/samba-${pkgver}/source3/script/smbtar ${_pkgsrc}/usr/bin/
- fi
-}
-
-package_libwbclient() {
-pkgdesc="Samba winbind client library"
-depends=('glibc' 'libbsd')
- # Use samba-pkg as a staging directory for the split packages
- # (This is so RPATHS and symlinks are generated correctly via
- # make install, but the otherwise unsplit pieces can be split)
- _pkgsrc=${srcdir}/samba-pkg
- install -d -m755 ${pkgdir}/usr/lib
- mv ${_pkgsrc}/usr/lib/libwbclient*.so* ${pkgdir}/usr/lib/
-
- install -d -m755 ${pkgdir}/usr/lib/samba
- mv ${_pkgsrc}/usr/lib/samba/libwinbind-client*.so* ${pkgdir}/usr/lib/samba/
- mv ${_pkgsrc}/usr/lib/samba/libreplace-samba4.so* ${pkgdir}/usr/lib/samba/
-
- install -d -m755 ${pkgdir}/usr/lib/pkgconfig
- mv ${_pkgsrc}/usr/lib/pkgconfig/wbclient.pc ${pkgdir}/usr/lib/pkgconfig/
-
- install -d -m755 ${pkgdir}/usr/include/samba-4.0
- mv ${_pkgsrc}/usr/include/samba-4.0/wbclient.h ${pkgdir}/usr/include/samba-4.0/
-}
-
-package_smbclient() {
-pkgdesc="Tools to access a server's filespace and printers via SMB"
-depends=('popt' 'cifs-utils' 'tdb' "libwbclient>=$pkgver" 'ldb'
- 'tevent' 'libgcrypt' 'python2' 'talloc' 'readline' 'gnutls'
- 'libbsd' 'libldap' 'libcups')
-
- _smbclient_bins=('smbclient' 'rpcclient' 'smbspool'
- 'smbtree' 'smbcacls' 'smbcquotas' 'smbget' 'net'
- 'nmblookup' 'smbtar')
- # Use samba-pkg as a staging directory for the split packages
- # (This is so RPATHS and symlinks are generated correctly via
- # make install, but the otherwise unsplit pieces can be split)
- _pkgsrc=${srcdir}/samba-pkg
- install -d -m755 ${pkgdir}/usr/bin
- for bin in ${_smbclient_bins[@]}; do
- mv ${_pkgsrc}/usr/bin/${bin} ${pkgdir}/usr/bin/
- done
-
- # smbclient binaries link to the majority of the samba
- # libs, so this is a shortcut instead of resolving the
- # whole dependency tree by hand
- install -d -m755 ${pkgdir}/usr/lib
- for lib in ${_pkgsrc}/usr/lib/lib*.so*; do
- mv ${lib} ${pkgdir}/usr/lib/
- done
-
- install -d -m755 ${pkgdir}/usr/lib/samba
- for lib in ${_pkgsrc}/usr/lib/samba/lib*.so*; do
- mv ${lib} ${pkgdir}/usr/lib/samba/
- done
-
- install -d -m755 ${pkgdir}/usr/lib/pkgconfig
- mv ${_pkgsrc}/usr/lib/pkgconfig/smbclient.pc ${pkgdir}/usr/lib/pkgconfig/
- mv ${_pkgsrc}/usr/lib/pkgconfig/netapi.pc ${pkgdir}/usr/lib/pkgconfig/
-
- install -d -m755 ${pkgdir}/usr/share/man/man1
- install -d -m755 ${pkgdir}/usr/share/man/man7
- install -d -m755 ${pkgdir}/usr/share/man/man8
- for bin in ${_smbclient_bins[@]}; do
- if [ -e ${_pkgsrc}/usr/share/man/man1/${bin}.1 ]; then
- mv ${_pkgsrc}/usr/share/man/man1/${bin}.1 ${pkgdir}/usr/share/man/man1/
- fi
- if [ -e ${_pkgsrc}/usr/share/man/man8/${bin}.8 ]; then
- mv ${_pkgsrc}/usr/share/man/man8/${bin}.8 ${pkgdir}/usr/share/man/man8/
- fi
- done
- mv ${_pkgsrc}/usr/share/man/man7/libsmbclient.7 ${pkgdir}/usr/share/man/man7/
-
- install -d -m755 ${pkgdir}/usr/include/samba-4.0
- mv ${_pkgsrc}/usr/include/samba-4.0/libsmbclient.h ${pkgdir}/usr/include/samba-4.0/
- mv ${_pkgsrc}/usr/include/samba-4.0/netapi.h ${pkgdir}/usr/include/samba-4.0/
-
- mkdir -p ${pkgdir}/usr/lib/cups/backend
- ln -sf /usr/bin/smbspool ${pkgdir}/usr/lib/cups/backend/smb
-}
-
-package_samba() {
-pkgdesc="SMB Fileserver and AD Domain server"
-depends=('db>=4.7' 'popt' 'libcups' 'libcap>=2.16' 'gamin' 'gnutls>=2.4.1'
- 'talloc' 'ldb' 'libbsd' 'python2' 'iniparser' 'tdb' 'libaio' 'perl-parse-yapp' "smbclient>=$pkgver")
-backup=(etc/logrotate.d/samba
- etc/pam.d/samba
- etc/samba/smb.conf
- etc/xinetd.d/swat
- etc/conf.d/samba)
-install=samba.install
- # Use samba-pkg as a staging directory for the split packages
- # (This is so RPATHS and symlinks are generated correctly via
- # make install, but the otherwise unsplit pieces can be split)
- _pkgsrc=${srcdir}/samba-pkg
- # Everything that libwbclient and smbclient didn't install goes
- # into the samba package...
- mv ${_pkgsrc}/* ${pkgdir}/
- rmdir ${_pkgsrc}
-
- _pyver=`python2 -c 'import sys; print(sys.version[:3])'`
-
- find ${pkgdir}/usr/lib/python${_pyver}/site-packages/ -name '*.py' | \
- xargs sed -i "s|#!/usr/bin/env python$|#!/usr/bin/env python2|"
- find ${pkgdir}/usr/bin ${pkgdir}/usr/bin -type f -executable | \
- xargs sed -i "s|#!/usr/bin/env python$|#!/usr/bin/env python2|"
-
- # Make admin scripts look in the right place for the samba python module
- for script in bin/samba_dnsupdate bin/samba_kcc bin/samba_spnupdate \
- bin/samba_upgradedns bin/samba-tool
- do
- sed -i "/^sys\.path\.insert/ a\
-sys.path.insert(0, '/usr/lib/python${_pyver}/site-packages')" \
- ${pkgdir}/usr/${script}
- done
-
- # install systemd files
- install -d -m755 ${pkgdir}/usr/lib/systemd/system
- #for i in smbd nmbd winbindd; do
- install -m644 ${srcdir}/*.service ${pkgdir}/usr/lib/systemd/system/
- install -m644 ${srcdir}/*.socket ${pkgdir}/usr/lib/systemd/system/
- install -d -m755 ${pkgdir}/etc/conf.d
- install -m644 ${srcdir}/samba.conf.d ${pkgdir}/etc/conf.d/samba
- #done
- # create ephemeral dirs via tmpfiles rather than shipping them in package
- install -D -m644 ${srcdir}/samba.conf ${pkgdir}/usr/lib/tmpfiles.d/samba.conf
- # install sample smb.conf
- install -d -m755 ${pkgdir}/etc/samba
- install -m644 ${srcdir}/samba-${pkgver}/packaging/LSB/smb.conf ${pkgdir}/etc/samba/smb.conf.default
-
- mkdir -p ${pkgdir}/etc/samba/private
- chmod 700 ${pkgdir}/etc/samba/private
-
- install -D -m644 ${srcdir}/samba.logrotate ${pkgdir}/etc/logrotate.d/samba
- install -D -m644 ${srcdir}/samba.pam ${pkgdir}/etc/pam.d/samba
-
- # winbind krb5 locator
- mkdir -p ${pkgdir}/usr/lib/krb5/plugins/libkrb5
- mv ${pkgdir}/usr/lib/*.so ${pkgdir}/usr/lib/krb5/plugins/libkrb5/
-
- # fix logrotate
- sed -i -e 's|log.%m|%m.log|g' ${pkgdir}/etc/samba/smb.conf.default
-
- # spool directory
- install -d -m1777 ${pkgdir}/var/spool/samba
-
- rm -rf ${pkgdir}/var/run
-
- # copy ldap example
- install -D -m644 ${srcdir}/samba-${pkgver}/examples/LDAP/samba.schema ${pkgdir}/usr/share/doc/samba/examples/LDAP/samba.schema
-}
-md5sums=('c6ee5c766016d59908c8fb672fbbd445'
- 'SKIP'
- '5697da77590ec092cc8a883bae06093c'
- '96f82c38f3f540b53f3e5144900acf17'
- 'ee4763a656cf00d92bfda31b6bb2c5cb'
- '6c447748a064d631435dbef0a3dcf32f'
- 'e4ae6a3cac080602120aa151918c4a36'
- 'a78b9aa93eb14b0ac445897395693225'
- 'df6380c73cb73163968eabc8650f7358'
- '70afd2db60a2e8eff7615dbdecd887ac'
- 'd5f56f43e1280bba20f6bbd88d16fa41'
- '49abd7b719e3713a3f75a8a50958e381')
Copied: samba/repos/extra-x86_64/PKGBUILD (from rev 301905, samba/trunk/PKGBUILD)
===================================================================
--- extra-x86_64/PKGBUILD (rev 0)
+++ extra-x86_64/PKGBUILD 2017-08-11 09:56:32 UTC (rev 301906)
@@ -0,0 +1,257 @@
+
+# Maintainer: Tobias Powalowski <tpowa at archlinux.org>
+# Contributor: judd <jvinet at zeroflux.org>
+# Contributor: Michael Hansen <zrax0111 gmail com>
+# Contributor: Marco A Rojas <marquicus at gmail.com>
+# Contributor: Netanel Shine <netanel at archlinux.org.il >
+# Contributor: ngoonee <ngoonee.talk at gmail.com>
+# Contributor: Adam Russell <adamlr6+arch at gmail.com>
+# Contributor: Dhananjay Sathe <dhananjaysathe at gmail.com>
+
+pkgbase=samba
+pkgname=('libwbclient' 'smbclient' 'samba')
+pkgver=4.6.7
+pkgrel=1
+arch=(i686 x86_64)
+url="http://www.samba.org"
+license=('GPL3')
+makedepends=('python2' 'docbook-xsl' 'pkg-config' 'libbsd' 'db' 'popt' 'libcups'
+ 'readline' 'tevent' 'acl' 'libldap' 'libcap' 'ldb>=1.1.15' 'krb5' 'pam' 'systemd'
+ 'gamin' 'gnutls>=2.4.1' 'talloc' 'tdb' 'dbus' 'libaio' 'perl-parse-yapp')
+source=(http://us1.samba.org/samba/ftp/stable/${pkgbase}-${pkgver}.tar.gz
+ http://us1.samba.org/samba/ftp/stable/${pkgbase}-${pkgver}.tar.asc
+ samba.logrotate
+ samba.pam
+ samba.service
+ samba.conf.d
+ smbd.service
+ smbd.socket
+ nmbd.service
+ smbd at .service
+ winbindd.service
+ samba.conf)
+validpgpkeys=('52FBC0B86D954B0843324CDC6F33915B6568B7EA') #Samba Distribution Verification Key <samba-bugs at samba.org>
+### UNINSTALL dmapi package before building!!!
+
+prepare() {
+ cd samba-${pkgver}
+}
+
+build() {
+ # Use samba-pkg as a staging directory for the split packages
+ # (This is so RPATHS and symlinks are generated correctly via
+ # make install, but the otherwise unsplit pieces can be split)
+ _pkgsrc=${srcdir}/samba-pkg
+ rm -rf ${_pkgsrc}
+ cd ${srcdir}/samba-${pkgver}
+ # change to use python2
+ SAVEIFS=${IFS}
+ IFS=$(echo -en "\n\b")
+ PYTHON_CALLERS="$(find ${srcdir}/samba-${pkgver} -name '*.py')
+$(find ${srcdir}/samba-${pkgver} -name 'wscript*')
+$(find ${srcdir}/samba-${pkgver} -name 'configure.ac')
+$(find ${srcdir}/samba-${pkgver} -name 'upgrade_from_s3')
+$(find ${srcdir}/samba-${pkgver}/buildtools -type f)
+$(find ${srcdir}/samba-${pkgver}/source4/scripting -type f)"
+ sed -i -e "s|/usr/bin/env python$|/usr/bin/env python2|" \
+ -e "s|python-config|python2-config|" \
+ -e "s|bin/python|bin/python2|" \
+ ${PYTHON_CALLERS}
+ IFS=${SAVEIFS}
+
+ export PYTHON=/usr/bin/python2
+_samba4_idmap_modules=idmap_ad,idmap_rid,idmap_adex,idmap_hash,idmap_tdb2
+_samba4_pdb_modules=pdb_tdbsam,pdb_ldap,pdb_ads,pdb_smbpasswd,pdb_wbc_sam,pdb_samba4
+_samba4_auth_modules=auth_unix,auth_wbc,auth_server,auth_netlogond,auth_script,auth_samba4
+ cd ${srcdir}/samba-${pkgver}
+ ./configure --enable-fhs \
+ --prefix=/usr \
+ --sbindir=/usr/bin \
+ --libdir=/usr/lib \
+ --libexecdir=/usr/lib/samba \
+ --localstatedir=/var \
+ --with-configdir=/etc/samba \
+ --with-lockdir=/var/cache/samba \
+ --with-sockets-dir=/var/run/samba \
+ --with-piddir=/var/run \
+ --with-ads \
+ --with-ldap \
+ --with-winbind \
+ --with-acl-support \
+ --enable-gnutls \
+ --with-pam \
+ --with-pammodulesdir=/usr/lib/security \
+ --bundled-libraries=!tdb,!talloc,!pytalloc-util,!tevent,!popt,!ldb,!pyldb-util \
+ --with-shared-modules=${_samba4_idmap_modules},${_samba4_pdb_modules},${_samba4_auth_modules} \
+ --disable-rpath-install
+
+ # Add this to the options once it's working...
+ #--with-system-mitkrb5 /opt/heimdal
+ make
+ make DESTDIR="${_pkgsrc}/" install
+
+ # This gets skipped somehow
+ if [ ! -e ${_pkgsrc}/usr/bin/smbtar ]; then
+ install -m755 ${srcdir}/samba-${pkgver}/source3/script/smbtar ${_pkgsrc}/usr/bin/
+ fi
+}
+
+package_libwbclient() {
+pkgdesc="Samba winbind client library"
+depends=('glibc' 'libbsd')
+ # Use samba-pkg as a staging directory for the split packages
+ # (This is so RPATHS and symlinks are generated correctly via
+ # make install, but the otherwise unsplit pieces can be split)
+ _pkgsrc=${srcdir}/samba-pkg
+ install -d -m755 ${pkgdir}/usr/lib
+ mv ${_pkgsrc}/usr/lib/libwbclient*.so* ${pkgdir}/usr/lib/
+
+ install -d -m755 ${pkgdir}/usr/lib/samba
+ mv ${_pkgsrc}/usr/lib/samba/libwinbind-client*.so* ${pkgdir}/usr/lib/samba/
+ mv ${_pkgsrc}/usr/lib/samba/libreplace-samba4.so* ${pkgdir}/usr/lib/samba/
+
+ install -d -m755 ${pkgdir}/usr/lib/pkgconfig
+ mv ${_pkgsrc}/usr/lib/pkgconfig/wbclient.pc ${pkgdir}/usr/lib/pkgconfig/
+
+ install -d -m755 ${pkgdir}/usr/include/samba-4.0
+ mv ${_pkgsrc}/usr/include/samba-4.0/wbclient.h ${pkgdir}/usr/include/samba-4.0/
+}
+
+package_smbclient() {
+pkgdesc="Tools to access a server's filespace and printers via SMB"
+depends=('popt' 'cifs-utils' 'tdb' "libwbclient>=$pkgver" 'ldb'
+ 'tevent' 'libgcrypt' 'python2' 'talloc' 'readline' 'gnutls'
+ 'libbsd' 'libldap' 'libcups')
+
+ _smbclient_bins=('smbclient' 'rpcclient' 'smbspool'
+ 'smbtree' 'smbcacls' 'smbcquotas' 'smbget' 'net'
+ 'nmblookup' 'smbtar')
+ # Use samba-pkg as a staging directory for the split packages
+ # (This is so RPATHS and symlinks are generated correctly via
+ # make install, but the otherwise unsplit pieces can be split)
+ _pkgsrc=${srcdir}/samba-pkg
+ install -d -m755 ${pkgdir}/usr/bin
+ for bin in ${_smbclient_bins[@]}; do
+ mv ${_pkgsrc}/usr/bin/${bin} ${pkgdir}/usr/bin/
+ done
+
+ # smbclient binaries link to the majority of the samba
+ # libs, so this is a shortcut instead of resolving the
+ # whole dependency tree by hand
+ install -d -m755 ${pkgdir}/usr/lib
+ for lib in ${_pkgsrc}/usr/lib/lib*.so*; do
+ mv ${lib} ${pkgdir}/usr/lib/
+ done
+
+ install -d -m755 ${pkgdir}/usr/lib/samba
+ for lib in ${_pkgsrc}/usr/lib/samba/lib*.so*; do
+ mv ${lib} ${pkgdir}/usr/lib/samba/
+ done
+
+ install -d -m755 ${pkgdir}/usr/lib/pkgconfig
+ mv ${_pkgsrc}/usr/lib/pkgconfig/smbclient.pc ${pkgdir}/usr/lib/pkgconfig/
+ mv ${_pkgsrc}/usr/lib/pkgconfig/netapi.pc ${pkgdir}/usr/lib/pkgconfig/
+
+ install -d -m755 ${pkgdir}/usr/share/man/man1
+ install -d -m755 ${pkgdir}/usr/share/man/man7
+ install -d -m755 ${pkgdir}/usr/share/man/man8
+ for bin in ${_smbclient_bins[@]}; do
+ if [ -e ${_pkgsrc}/usr/share/man/man1/${bin}.1 ]; then
+ mv ${_pkgsrc}/usr/share/man/man1/${bin}.1 ${pkgdir}/usr/share/man/man1/
+ fi
+ if [ -e ${_pkgsrc}/usr/share/man/man8/${bin}.8 ]; then
+ mv ${_pkgsrc}/usr/share/man/man8/${bin}.8 ${pkgdir}/usr/share/man/man8/
+ fi
+ done
+ mv ${_pkgsrc}/usr/share/man/man7/libsmbclient.7 ${pkgdir}/usr/share/man/man7/
+
+ install -d -m755 ${pkgdir}/usr/include/samba-4.0
+ mv ${_pkgsrc}/usr/include/samba-4.0/libsmbclient.h ${pkgdir}/usr/include/samba-4.0/
+ mv ${_pkgsrc}/usr/include/samba-4.0/netapi.h ${pkgdir}/usr/include/samba-4.0/
+
+ mkdir -p ${pkgdir}/usr/lib/cups/backend
+ ln -sf /usr/bin/smbspool ${pkgdir}/usr/lib/cups/backend/smb
+}
+
+package_samba() {
+pkgdesc="SMB Fileserver and AD Domain server"
+depends=('db>=4.7' 'popt' 'libcups' 'libcap>=2.16' 'gamin' 'gnutls>=2.4.1'
+ 'talloc' 'ldb' 'libbsd' 'python2' 'iniparser' 'tdb' 'libaio' 'perl-parse-yapp' "smbclient>=$pkgver")
+backup=(etc/logrotate.d/samba
+ etc/pam.d/samba
+ etc/samba/smb.conf
+ etc/xinetd.d/swat
+ etc/conf.d/samba)
+install=samba.install
+ # Use samba-pkg as a staging directory for the split packages
+ # (This is so RPATHS and symlinks are generated correctly via
+ # make install, but the otherwise unsplit pieces can be split)
+ _pkgsrc=${srcdir}/samba-pkg
+ # Everything that libwbclient and smbclient didn't install goes
+ # into the samba package...
+ mv ${_pkgsrc}/* ${pkgdir}/
+ rmdir ${_pkgsrc}
+
+ _pyver=`python2 -c 'import sys; print(sys.version[:3])'`
+
+ find ${pkgdir}/usr/lib/python${_pyver}/site-packages/ -name '*.py' | \
+ xargs sed -i "s|#!/usr/bin/env python$|#!/usr/bin/env python2|"
+ find ${pkgdir}/usr/bin ${pkgdir}/usr/bin -type f -executable | \
+ xargs sed -i "s|#!/usr/bin/env python$|#!/usr/bin/env python2|"
+
+ # Make admin scripts look in the right place for the samba python module
+ for script in bin/samba_dnsupdate bin/samba_kcc bin/samba_spnupdate \
+ bin/samba_upgradedns bin/samba-tool
+ do
+ sed -i "/^sys\.path\.insert/ a\
+sys.path.insert(0, '/usr/lib/python${_pyver}/site-packages')" \
+ ${pkgdir}/usr/${script}
+ done
+
+ # install systemd files
+ install -d -m755 ${pkgdir}/usr/lib/systemd/system
+ #for i in smbd nmbd winbindd; do
+ install -m644 ${srcdir}/*.service ${pkgdir}/usr/lib/systemd/system/
+ install -m644 ${srcdir}/*.socket ${pkgdir}/usr/lib/systemd/system/
+ install -d -m755 ${pkgdir}/etc/conf.d
+ install -m644 ${srcdir}/samba.conf.d ${pkgdir}/etc/conf.d/samba
+ #done
+ # create ephemeral dirs via tmpfiles rather than shipping them in package
+ install -D -m644 ${srcdir}/samba.conf ${pkgdir}/usr/lib/tmpfiles.d/samba.conf
+ # install sample smb.conf
+ install -d -m755 ${pkgdir}/etc/samba
+ install -m644 ${srcdir}/samba-${pkgver}/packaging/LSB/smb.conf ${pkgdir}/etc/samba/smb.conf.default
+
+ mkdir -p ${pkgdir}/etc/samba/private
+ chmod 700 ${pkgdir}/etc/samba/private
+
+ install -D -m644 ${srcdir}/samba.logrotate ${pkgdir}/etc/logrotate.d/samba
+ install -D -m644 ${srcdir}/samba.pam ${pkgdir}/etc/pam.d/samba
+
+ # winbind krb5 locator
+ mkdir -p ${pkgdir}/usr/lib/krb5/plugins/libkrb5
+ mv ${pkgdir}/usr/lib/*.so ${pkgdir}/usr/lib/krb5/plugins/libkrb5/
+
+ # fix logrotate
+ sed -i -e 's|log.%m|%m.log|g' ${pkgdir}/etc/samba/smb.conf.default
+
+ # spool directory
+ install -d -m1777 ${pkgdir}/var/spool/samba
+
+ rm -rf ${pkgdir}/var/run
+
+ # copy ldap example
+ install -D -m644 ${srcdir}/samba-${pkgver}/examples/LDAP/samba.schema ${pkgdir}/usr/share/doc/samba/examples/LDAP/samba.schema
+}
+md5sums=('c6ee5c766016d59908c8fb672fbbd445'
+ 'SKIP'
+ '5697da77590ec092cc8a883bae06093c'
+ '96f82c38f3f540b53f3e5144900acf17'
+ 'ee4763a656cf00d92bfda31b6bb2c5cb'
+ '6c447748a064d631435dbef0a3dcf32f'
+ 'e4ae6a3cac080602120aa151918c4a36'
+ 'a78b9aa93eb14b0ac445897395693225'
+ 'df6380c73cb73163968eabc8650f7358'
+ '70afd2db60a2e8eff7615dbdecd887ac'
+ 'd5f56f43e1280bba20f6bbd88d16fa41'
+ '49abd7b719e3713a3f75a8a50958e381')
Deleted: extra-x86_64/nmbd.service
===================================================================
--- extra-x86_64/nmbd.service 2017-08-11 09:49:53 UTC (rev 301905)
+++ extra-x86_64/nmbd.service 2017-08-11 09:56:32 UTC (rev 301906)
@@ -1,12 +0,0 @@
-[Unit]
-Description=Samba NetBIOS name server
-After=network.target
-
-[Service]
-Type=forking
-PIDFile=/var/run/nmbd.pid
-ExecStart=/usr/bin/nmbd -D
-ExecReload=/bin/kill -HUP $MAINPID
-
-[Install]
-WantedBy=multi-user.target
Copied: samba/repos/extra-x86_64/nmbd.service (from rev 301905, samba/trunk/nmbd.service)
===================================================================
--- extra-x86_64/nmbd.service (rev 0)
+++ extra-x86_64/nmbd.service 2017-08-11 09:56:32 UTC (rev 301906)
@@ -0,0 +1,12 @@
+[Unit]
+Description=Samba NetBIOS name server
+After=network.target
+
+[Service]
+Type=forking
+PIDFile=/var/run/nmbd.pid
+ExecStart=/usr/bin/nmbd -D
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target
Deleted: extra-x86_64/samba.conf
===================================================================
--- extra-x86_64/samba.conf 2017-08-11 09:49:53 UTC (rev 301905)
+++ extra-x86_64/samba.conf 2017-08-11 09:56:32 UTC (rev 301906)
@@ -1,2 +0,0 @@
-D /run/samba 0755 - - -
-d /var/log/samba 0755 - - -
\ No newline at end of file
Copied: samba/repos/extra-x86_64/samba.conf (from rev 301905, samba/trunk/samba.conf)
===================================================================
--- extra-x86_64/samba.conf (rev 0)
+++ extra-x86_64/samba.conf 2017-08-11 09:56:32 UTC (rev 301906)
@@ -0,0 +1,2 @@
+D /run/samba 0755 - - -
+d /var/log/samba 0755 - - -
\ No newline at end of file
Deleted: extra-x86_64/samba.conf.d
===================================================================
--- extra-x86_64/samba.conf.d 2017-08-11 09:49:53 UTC (rev 301905)
+++ extra-x86_64/samba.conf.d 2017-08-11 09:56:32 UTC (rev 301906)
@@ -1,18 +0,0 @@
-## Path: Network/Samba
-## Description: Samba process options
-## Type: string
-## Default: ""
-## ServiceRestart: samba
-SAMBAOPTIONS=""
-## Type: string
-## Default: ""
-## ServiceRestart: smb
-SMBDOPTIONS=""
-## Type: string
-## Default: ""
-## ServiceRestart: nmb
-NMBDOPTIONS=""
-## Type: string
-## Default: ""
-## ServiceRestart: winbind
-WINBINDOPTIONS=""
Copied: samba/repos/extra-x86_64/samba.conf.d (from rev 301905, samba/trunk/samba.conf.d)
===================================================================
--- extra-x86_64/samba.conf.d (rev 0)
+++ extra-x86_64/samba.conf.d 2017-08-11 09:56:32 UTC (rev 301906)
@@ -0,0 +1,18 @@
+## Path: Network/Samba
+## Description: Samba process options
+## Type: string
+## Default: ""
+## ServiceRestart: samba
+SAMBAOPTIONS=""
+## Type: string
+## Default: ""
+## ServiceRestart: smb
+SMBDOPTIONS=""
+## Type: string
+## Default: ""
+## ServiceRestart: nmb
+NMBDOPTIONS=""
+## Type: string
+## Default: ""
+## ServiceRestart: winbind
+WINBINDOPTIONS=""
Deleted: extra-x86_64/samba.install
===================================================================
--- extra-x86_64/samba.install 2017-08-11 09:49:53 UTC (rev 301905)
+++ extra-x86_64/samba.install 2017-08-11 09:56:32 UTC (rev 301906)
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-post_upgrade() {
- if [ "$(vercmp $2 4.0.4)" -lt 0 ]; then
- echo "Major upgrade from samba 3.x to 4.x,"
- echo "please read the Samba4 migration guide:"
- echo "http://wiki.samba.org/index.php/Samba4/samba3upgrade/HOWTO"
- fi
-}
-# vim:set ts=2 sw=2 et:
Copied: samba/repos/extra-x86_64/samba.install (from rev 301905, samba/trunk/samba.install)
===================================================================
--- extra-x86_64/samba.install (rev 0)
+++ extra-x86_64/samba.install 2017-08-11 09:56:32 UTC (rev 301906)
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+post_upgrade() {
+ if [ "$(vercmp $2 4.0.4)" -lt 0 ]; then
+ echo "Major upgrade from samba 3.x to 4.x,"
+ echo "please read the Samba4 migration guide:"
+ echo "http://wiki.samba.org/index.php/Samba4/samba3upgrade/HOWTO"
+ fi
+}
+# vim:set ts=2 sw=2 et:
Deleted: extra-x86_64/samba.logrotate
===================================================================
--- extra-x86_64/samba.logrotate 2017-08-11 09:49:53 UTC (rev 301905)
+++ extra-x86_64/samba.logrotate 2017-08-11 09:56:32 UTC (rev 301906)
@@ -1,9 +0,0 @@
-/var/log/samba/log.smbd /var/log/samba/log.nmbd /var/log/samba/*.log {
- notifempty
- missingok
- sharedscripts
- copytruncate
- postrotate
- /bin/kill -HUP `cat /var/run/samba/*.pid 2>/dev/null` 2>/dev/null || true
- endscript
-}
Copied: samba/repos/extra-x86_64/samba.logrotate (from rev 301905, samba/trunk/samba.logrotate)
===================================================================
--- extra-x86_64/samba.logrotate (rev 0)
+++ extra-x86_64/samba.logrotate 2017-08-11 09:56:32 UTC (rev 301906)
@@ -0,0 +1,9 @@
+/var/log/samba/log.smbd /var/log/samba/log.nmbd /var/log/samba/*.log {
+ notifempty
+ missingok
+ sharedscripts
+ copytruncate
+ postrotate
+ /bin/kill -HUP `cat /var/run/samba/*.pid 2>/dev/null` 2>/dev/null || true
+ endscript
+}
Deleted: extra-x86_64/samba.pam
===================================================================
--- extra-x86_64/samba.pam 2017-08-11 09:49:53 UTC (rev 301905)
+++ extra-x86_64/samba.pam 2017-08-11 09:56:32 UTC (rev 301906)
@@ -1,3 +0,0 @@
-auth required pam_unix.so
-account required pam_unix.so
-session required pam_unix.so
Copied: samba/repos/extra-x86_64/samba.pam (from rev 301905, samba/trunk/samba.pam)
===================================================================
--- extra-x86_64/samba.pam (rev 0)
+++ extra-x86_64/samba.pam 2017-08-11 09:56:32 UTC (rev 301906)
@@ -0,0 +1,3 @@
+auth required pam_unix.so
+account required pam_unix.so
+session required pam_unix.so
Deleted: extra-x86_64/samba.service
===================================================================
--- extra-x86_64/samba.service 2017-08-11 09:49:53 UTC (rev 301905)
+++ extra-x86_64/samba.service 2017-08-11 09:56:32 UTC (rev 301906)
@@ -1,14 +0,0 @@
-[Unit]
-Description=Samba AD Daemon
-After=syslog.target network.target
-
-[Service]
-Type=forking
-PIDFile=/var/run/samba.pid
-LimitNOFILE=16384
-EnvironmentFile=-/etc/conf.d/samba
-ExecStart=/usr/bin/samba $SAMBAOPTIONS
-ExecReload=/usr/bin/kill -HUP $MAINPID
-
-[Install]
-WantedBy=multi-user.target
Copied: samba/repos/extra-x86_64/samba.service (from rev 301905, samba/trunk/samba.service)
===================================================================
--- extra-x86_64/samba.service (rev 0)
+++ extra-x86_64/samba.service 2017-08-11 09:56:32 UTC (rev 301906)
@@ -0,0 +1,14 @@
+[Unit]
+Description=Samba AD Daemon
+After=syslog.target network.target
+
+[Service]
+Type=forking
+PIDFile=/var/run/samba.pid
+LimitNOFILE=16384
+EnvironmentFile=-/etc/conf.d/samba
+ExecStart=/usr/bin/samba $SAMBAOPTIONS
+ExecReload=/usr/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target
Deleted: extra-x86_64/smbd.service
===================================================================
--- extra-x86_64/smbd.service 2017-08-11 09:49:53 UTC (rev 301905)
+++ extra-x86_64/smbd.service 2017-08-11 09:56:32 UTC (rev 301906)
@@ -1,12 +0,0 @@
-[Unit]
-Description=Samba SMB/CIFS server
-After=network.target nmbd.service winbindd.service
-
-[Service]
-Type=forking
-PIDFile=/var/run/smbd.pid
-ExecStart=/usr/bin/smbd -D
-ExecReload=/bin/kill -HUP $MAINPID
-
-[Install]
-WantedBy=multi-user.target
Copied: samba/repos/extra-x86_64/smbd.service (from rev 301905, samba/trunk/smbd.service)
===================================================================
--- extra-x86_64/smbd.service (rev 0)
+++ extra-x86_64/smbd.service 2017-08-11 09:56:32 UTC (rev 301906)
@@ -0,0 +1,12 @@
+[Unit]
+Description=Samba SMB/CIFS server
+After=network.target nmbd.service winbindd.service
+
+[Service]
+Type=forking
+PIDFile=/var/run/smbd.pid
+ExecStart=/usr/bin/smbd -D
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target
Deleted: extra-x86_64/smbd.socket
===================================================================
--- extra-x86_64/smbd.socket 2017-08-11 09:49:53 UTC (rev 301905)
+++ extra-x86_64/smbd.socket 2017-08-11 09:56:32 UTC (rev 301906)
@@ -1,9 +0,0 @@
-[Unit]
-Description=Samba SMB/CIFS server socket
-
-[Socket]
-ListenStream=445
-Accept=yes
-
-[Install]
-WantedBy=sockets.target
Copied: samba/repos/extra-x86_64/smbd.socket (from rev 301905, samba/trunk/smbd.socket)
===================================================================
--- extra-x86_64/smbd.socket (rev 0)
+++ extra-x86_64/smbd.socket 2017-08-11 09:56:32 UTC (rev 301906)
@@ -0,0 +1,9 @@
+[Unit]
+Description=Samba SMB/CIFS server socket
+
+[Socket]
+ListenStream=445
+Accept=yes
+
+[Install]
+WantedBy=sockets.target
Deleted: extra-x86_64/smbd at .service
===================================================================
--- extra-x86_64/smbd at .service 2017-08-11 09:49:53 UTC (rev 301905)
+++ extra-x86_64/smbd at .service 2017-08-11 09:56:32 UTC (rev 301906)
@@ -1,7 +0,0 @@
-[Unit]
-Description=Samba SMB/CIFS server instance
-
-[Service]
-ExecStart=/usr/bin/smbd -F
-ExecReload=/bin/kill -HUP $MAINPID
-StandardInput=socket
Copied: samba/repos/extra-x86_64/smbd at .service (from rev 301905, samba/trunk/smbd at .service)
===================================================================
--- extra-x86_64/smbd at .service (rev 0)
+++ extra-x86_64/smbd at .service 2017-08-11 09:56:32 UTC (rev 301906)
@@ -0,0 +1,7 @@
+[Unit]
+Description=Samba SMB/CIFS server instance
+
+[Service]
+ExecStart=/usr/bin/smbd -F
+ExecReload=/bin/kill -HUP $MAINPID
+StandardInput=socket
Deleted: extra-x86_64/winbindd.service
===================================================================
--- extra-x86_64/winbindd.service 2017-08-11 09:49:53 UTC (rev 301905)
+++ extra-x86_64/winbindd.service 2017-08-11 09:56:32 UTC (rev 301906)
@@ -1,12 +0,0 @@
-[Unit]
-Description=Samba Winbind daemon
-After=network.target nmbd.service
-
-[Service]
-Type=forking
-PIDFile=/var/run/winbindd.pid
-ExecStart=/usr/bin/winbindd -D
-ExecReload=/bin/kill -HUP $MAINPID
-
-[Install]
-WantedBy=multi-user.target
Copied: samba/repos/extra-x86_64/winbindd.service (from rev 301905, samba/trunk/winbindd.service)
===================================================================
--- extra-x86_64/winbindd.service (rev 0)
+++ extra-x86_64/winbindd.service 2017-08-11 09:56:32 UTC (rev 301906)
@@ -0,0 +1,12 @@
+[Unit]
+Description=Samba Winbind daemon
+After=network.target nmbd.service
+
+[Service]
+Type=forking
+PIDFile=/var/run/winbindd.pid
+ExecStart=/usr/bin/winbindd -D
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target
More information about the arch-commits
mailing list