2010-12-13 23:41:22 +01:00
|
|
|
# Template file for 'samba'
|
|
|
|
pkgname=samba
|
2012-06-26 09:48:57 +02:00
|
|
|
version=3.6.6
|
2012-07-10 09:48:19 +02:00
|
|
|
revision=3
|
2010-12-13 23:41:22 +01:00
|
|
|
build_wrksrc=source3
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2012-01-26 18:03:59 +01:00
|
|
|
configure_args="--with-fhs --with-pam --with-pam_smbpass --with-ldap
|
|
|
|
--with-configdir=/etc/samba --with-lockdir=/var/samba
|
|
|
|
--with-cachedir=/var/samba --with-nmbdsocketdir=/run/samba/socket
|
|
|
|
--with-statedir=/var/samba --with-piddir=/run/samba --with-dnsupdate
|
2012-07-10 09:48:19 +02:00
|
|
|
--with-pammodulesdir=/usr/lib/security --with-automount --disable-swat
|
2012-05-16 11:21:23 +02:00
|
|
|
--with-syslog --enable-external-libtalloc --with-quotas --enable-cups
|
2012-01-26 18:03:59 +01:00
|
|
|
--enable-external-libtdb --disable-fam --with-ads --with-acl-support
|
|
|
|
--with-shared-modules=idmap_ad,idmap_adex,idmap_rid,idmap_hash,idmap_tdb2"
|
2012-05-23 18:26:56 +02:00
|
|
|
depends="smbclient libsmbclient>=$version"
|
2012-06-26 09:48:57 +02:00
|
|
|
makedepends="perl readline-devel python-devel libcap-devel popt-devel
|
|
|
|
e2fsprogs-devel mit-krb5-devel>=1.10.1 libldap-devel pam-devel acl-devel
|
|
|
|
avahi-libs-devel tdb-devel talloc-devel cups-devel"
|
2010-12-13 23:41:22 +01:00
|
|
|
short_desc="SMB/CIFS file, print, and login server for Unix"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2012-05-02 08:57:15 +02:00
|
|
|
license="GPL-3"
|
2012-07-09 23:37:57 +02:00
|
|
|
homepage="http://www.samba.org"
|
|
|
|
distfiles="http://us1.samba.org/samba/ftp/stable/$pkgname-$version.tar.gz"
|
2012-06-26 09:48:57 +02:00
|
|
|
checksum=67685f2badf7451cb06ad60534784072947c3a845e4d0afec5ab7817f2ee9310
|
2010-12-13 23:41:22 +01:00
|
|
|
long_desc="
|
|
|
|
Samba is an implementation of the SMB/CIFS protocol for Unix systems,
|
|
|
|
providing support for cross-platform file and printer sharing with Microsoft
|
|
|
|
Windows, OS X, and other Unix systems. Samba can also function as an
|
|
|
|
NT4-style domain controller, and can integrate with both NT4 domains and
|
|
|
|
Active Directory realms as a member server."
|
|
|
|
|
2012-01-26 18:03:59 +01:00
|
|
|
subpackages="smbclient libsmbclient samba-devel"
|
|
|
|
|
|
|
|
# Don't restart services automatically.
|
|
|
|
systemd_services="
|
|
|
|
nmbd.service off
|
|
|
|
smbd.service off
|
|
|
|
winbindd.service off"
|
|
|
|
|
|
|
|
conf_files="/etc/samba/smb.conf /etc/pam.d/samba"
|
2010-12-13 23:41:22 +01:00
|
|
|
|
2012-01-26 18:03:59 +01:00
|
|
|
post_install() {
|
|
|
|
# conf file
|
2012-03-22 09:11:49 +01:00
|
|
|
cd ${wrksrc}
|
2012-01-26 18:03:59 +01:00
|
|
|
cat examples/smb.conf.default | \
|
|
|
|
sed 's|log file = .*$|log file = /var/log/samba/%m.log|g' > \
|
|
|
|
${DESTDIR}/etc/samba/smb.conf
|
|
|
|
|
|
|
|
# fix logrotate
|
|
|
|
sed -i -e 's|log.%m|%m.log|g' ${DESTDIR}/etc/samba/smb.conf
|
|
|
|
|
|
|
|
# fix spool directory
|
|
|
|
sed -i 's|/usr/spool/samba|/var/spool/samba|g' \
|
|
|
|
${DESTDIR}/etc/samba/smb.conf
|
|
|
|
|
|
|
|
# nsswitch libraries
|
2012-07-09 23:37:57 +02:00
|
|
|
vinstall nsswitch/libnss_wins.so 755 usr/lib
|
|
|
|
ln -s libnss_wins.so ${DESTDIR}/usr/lib/libnss_wins.so.2
|
2012-01-26 18:03:59 +01:00
|
|
|
|
2012-07-09 23:37:57 +02:00
|
|
|
vinstall nsswitch/libnss_winbind.so 755 usr/lib
|
|
|
|
ln -s libnss_winbind.so ${DESTDIR}/usr/lib/libnss_winbind.so.2
|
2012-01-26 18:03:59 +01:00
|
|
|
|
|
|
|
# winbind krb5 locator
|
|
|
|
vinstall source3/bin/winbind_krb5_locator.so 755 \
|
|
|
|
usr/lib/krb5/plugins/libkrb5
|
|
|
|
|
|
|
|
# Remove unused manpages
|
2010-12-13 23:41:22 +01:00
|
|
|
rm -f ${DESTDIR}/usr/share/man/man8/tdb*
|
2012-01-26 18:03:59 +01:00
|
|
|
rm -f ${DESTDIR}/usr/share/man/man8/swat*
|
|
|
|
|
|
|
|
# systemd units
|
|
|
|
for f in nmbd smbd winbindd; do
|
2012-07-09 23:37:57 +02:00
|
|
|
vinstall ${FILESDIR}/${f}.service 644 usr/lib/systemd/system
|
2012-01-26 18:03:59 +01:00
|
|
|
done
|
|
|
|
# systemd tmpfiles
|
|
|
|
vinstall ${FILESDIR}/samba.tmpfiles 644 usr/lib/tmpfiles.d samba.conf
|
|
|
|
|
|
|
|
# PAM support
|
|
|
|
vinstall ${FILESDIR}/samba.pam 644 etc/pam.d samba
|
2010-12-13 23:41:22 +01:00
|
|
|
|
2012-01-26 18:03:59 +01:00
|
|
|
# logrotate file
|
|
|
|
vinstall ${FILESDIR}/samba.logrotate 644 etc/logrotate.d samba
|
2010-12-13 23:41:22 +01:00
|
|
|
}
|