2010-12-13 22:41:22 +00:00
|
|
|
# Template file for 'samba'
|
|
|
|
pkgname=samba
|
2015-02-23 16:14:18 +00:00
|
|
|
version=3.6.25
|
2015-03-16 07:42:34 +00:00
|
|
|
revision=2
|
|
|
|
build_pie=yes
|
2010-12-13 22:41:22 +00:00
|
|
|
build_wrksrc=source3
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2012-01-26 17:03:59 +00:00
|
|
|
configure_args="--with-fhs --with-pam --with-pam_smbpass --with-ldap
|
2013-10-09 07:24:06 +00:00
|
|
|
--with-configdir=/etc/samba --with-lockdir=/var/samba --with-static-libs=libtevent
|
2012-12-11 13:13:39 +00:00
|
|
|
--with-cachedir=/var/samba --with-nmbdsocketdir=/run/samba/socket
|
|
|
|
--with-statedir=/var/samba --with-piddir=/run/samba --with-dnsupdate
|
|
|
|
--with-pammodulesdir=/usr/lib/security --with-automount --disable-swat
|
|
|
|
--with-syslog --enable-external-libtalloc --with-quotas --enable-cups
|
|
|
|
--enable-external-libtdb --disable-fam --with-ads --with-acl-support
|
|
|
|
--with-shared-modules=idmap_ad,idmap_adex,idmap_rid,idmap_hash,idmap_tdb2"
|
2010-12-13 22:41:22 +00:00
|
|
|
short_desc="SMB/CIFS file, print, and login server for Unix"
|
2015-04-10 07:16:30 +00:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2012-05-02 06:57:15 +00:00
|
|
|
license="GPL-3"
|
2012-07-09 21:37:57 +00:00
|
|
|
homepage="http://www.samba.org"
|
|
|
|
distfiles="http://us1.samba.org/samba/ftp/stable/$pkgname-$version.tar.gz"
|
2015-02-23 16:14:18 +00:00
|
|
|
checksum=8f2c8a7f2bd89b0dfd228ed917815852f7c625b2bc0936304ac3ed63aaf83751
|
2010-12-13 22:41:22 +00:00
|
|
|
|
2014-03-29 16:19:49 +00:00
|
|
|
lib32disabled=yes
|
2014-10-12 09:10:34 +00:00
|
|
|
build_options="systemd"
|
2014-01-01 15:10:11 +00:00
|
|
|
conf_files="/etc/pam.d/samba"
|
2013-05-15 08:46:52 +00:00
|
|
|
hostmakedepends="pkg-config perl python-devel"
|
2015-03-27 09:50:40 +00:00
|
|
|
makedepends="readline-devel libcap-devel popt-devel e2fsprogs-devel
|
|
|
|
mit-krb5-devel libldap-devel pam-devel acl-devel avahi-libs-devel
|
2013-05-15 08:46:52 +00:00
|
|
|
tdb-devel talloc-devel cups-devel"
|
|
|
|
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
configure_args+=" samba_cv_CC_NEGATIVE_ENUM_VALUES=yes
|
2013-05-16 12:27:10 +00:00
|
|
|
libreplace_cv_HAVE_GETADDRINFO=no
|
2013-05-15 08:46:52 +00:00
|
|
|
libreplace_cv_HAVE_GETIFADDRS=yes
|
|
|
|
ac_cv_file__proc_sys_kernel_core_pattern=yes
|
|
|
|
ac_cv_func_ext_krb5_free_keytab_entry_contents=yes
|
|
|
|
samba_cv_HAVE_WRFILE_KEYTAB=yes
|
|
|
|
smb_krb5_cv_enctype_to_string_takes_size_t_arg=yes
|
|
|
|
smb_krb5_cv_enctype_to_string_takes_krb5_context_arg=yes"
|
|
|
|
fi
|
2012-12-11 13:13:39 +00:00
|
|
|
|
2014-02-27 14:48:16 +00:00
|
|
|
pre_configure() {
|
|
|
|
sed -e 's,XFS_QUOTA_,FS_QUOTA_,g' -i lib/sysquotas_xfs.c
|
|
|
|
}
|
2012-01-26 17:03:59 +00:00
|
|
|
post_install() {
|
2012-03-22 08:11:49 +00:00
|
|
|
cd ${wrksrc}
|
2012-12-11 13:13:39 +00:00
|
|
|
# conf file
|
2012-01-26 17:03:59 +00: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 21:37:57 +00:00
|
|
|
vinstall nsswitch/libnss_wins.so 755 usr/lib
|
|
|
|
ln -s libnss_wins.so ${DESTDIR}/usr/lib/libnss_wins.so.2
|
2012-01-26 17:03:59 +00:00
|
|
|
|
2012-07-09 21:37:57 +00:00
|
|
|
vinstall nsswitch/libnss_winbind.so 755 usr/lib
|
|
|
|
ln -s libnss_winbind.so ${DESTDIR}/usr/lib/libnss_winbind.so.2
|
2012-01-26 17:03:59 +00:00
|
|
|
|
|
|
|
# winbind krb5 locator
|
|
|
|
vinstall source3/bin/winbind_krb5_locator.so 755 \
|
|
|
|
usr/lib/krb5/plugins/libkrb5
|
|
|
|
|
|
|
|
# Remove unused manpages
|
2010-12-13 22:41:22 +00:00
|
|
|
rm -f ${DESTDIR}/usr/share/man/man8/tdb*
|
2012-01-26 17:03:59 +00:00
|
|
|
rm -f ${DESTDIR}/usr/share/man/man8/swat*
|
2013-10-09 07:24:06 +00:00
|
|
|
rm -f ${DESTDIR}/usr/lib/libtevent*
|
|
|
|
rm -f ${DESTDIR}/usr/include/samba/tevent*
|
2012-01-26 17:03:59 +00:00
|
|
|
|
|
|
|
# systemd units
|
2014-10-12 09:10:34 +00:00
|
|
|
if [ "$build_option_systemd" ]; then
|
|
|
|
for f in ${FILESDIR}/*.{service,socket}; do
|
|
|
|
vinstall ${f} 644 usr/lib/systemd/system
|
|
|
|
done
|
|
|
|
# systemd tmpfiles
|
|
|
|
vinstall ${FILESDIR}/samba.tmpfiles 644 usr/lib/tmpfiles.d samba.conf
|
|
|
|
fi
|
2012-01-26 17:03:59 +00:00
|
|
|
|
2014-10-13 15:00:21 +00:00
|
|
|
vsv nmbd
|
|
|
|
vsv smbd
|
|
|
|
|
2012-01-26 17:03:59 +00:00
|
|
|
# PAM support
|
|
|
|
vinstall ${FILESDIR}/samba.pam 644 etc/pam.d samba
|
2013-05-16 12:44:22 +00:00
|
|
|
|
|
|
|
# Install pkg-config files.
|
|
|
|
vmkdir usr/lib/pkgconfig
|
|
|
|
install -m644 source3/pkgconfig/*.pc ${DESTDIR}/usr/lib/pkgconfig
|
2010-12-13 22:41:22 +00:00
|
|
|
}
|
2013-04-14 10:31:59 +00:00
|
|
|
|
|
|
|
smbclient_package() {
|
|
|
|
short_desc="Command-line SMB/CIFS clients for Unix"
|
2013-11-12 09:26:43 +00:00
|
|
|
conf_files="/etc/samba/smb.conf"
|
2013-04-14 10:31:59 +00:00
|
|
|
pkg_install() {
|
2013-11-12 09:26:43 +00:00
|
|
|
vmove etc/samba/smb.conf
|
2013-04-14 10:31:59 +00:00
|
|
|
vmove usr/bin
|
|
|
|
vmove usr/share/man/man1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
libsmbclient_package() {
|
|
|
|
short_desc="Shared libraries for communication with SMB/CIFS servers"
|
|
|
|
pkg_install() {
|
2013-06-20 10:09:28 +00:00
|
|
|
vmove "usr/lib/libwbclient.so.*"
|
|
|
|
vmove "usr/lib/libsmbclient.so.*"
|
2013-04-14 10:31:59 +00:00
|
|
|
vmove usr/share/man/man7/libsmbclient.7
|
|
|
|
}
|
|
|
|
}
|
|
|
|
samba-devel_package() {
|
2014-10-12 09:10:34 +00:00
|
|
|
depends="libsmbclient>=${version}_${revision}"
|
2013-05-15 08:46:52 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-14 10:31:59 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
2013-05-16 12:44:22 +00:00
|
|
|
vmove usr/lib/pkgconfig
|
2013-06-20 10:09:28 +00:00
|
|
|
vmove usr/lib/libwbclient.so
|
|
|
|
vmove usr/lib/libsmbclient.so
|
2013-04-14 10:31:59 +00:00
|
|
|
}
|
|
|
|
}
|