milis/talimatname/genel/s/samba/talimat

60 lines
1.6 KiB
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: SMB Dosya sunucusu ve AD Etki Alanı sunucusu
2016-02-24 01:27:23 +01:00
# URL: http://www.samba.org
2017-10-27 20:46:27 +02:00
# Paketçi: milisarge
# Gerekler: talloc tevent avahi gnutls libgpg-error popt python cups kerberos libcap tdb openldap libxslt
2016-02-24 01:27:23 +01:00
name=samba
2017-09-11 13:31:41 +02:00
version=4.6.7
2016-02-24 01:27:23 +01:00
release=1
2017-09-11 13:31:41 +02:00
source=(https://www.samba.org/samba/ftp/stable/$name-$version.tar.gz
samba.conf)
2016-02-24 01:27:23 +01:00
2017-10-27 23:59:41 +02:00
derle() {
2017-03-12 13:38:06 +01:00
2016-02-24 01:27:23 +01:00
cd $name-$version
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--with-piddir=/run/samba \
--with-pammodulesdir=/lib/security \
2017-03-12 13:38:06 +01:00
--without-ad-dc \
2016-02-24 01:27:23 +01:00
--enable-fhs \
2017-03-12 13:38:06 +01:00
--without-systemd \
--bundled-libraries=!tdb,!talloc,!pytalloc-util,!tevent,!popt,!ldb
2016-02-24 01:27:23 +01:00
make
sed -i "/samba3.blackbox.failure.failure/i \^samba3.raw.eas" selftest/knownfail
make DESTDIR=$PKG install
2017-09-11 13:31:41 +02:00
2016-02-24 01:27:23 +01:00
install -v -m644 examples/smb.conf.default $PKG/etc/samba/smb.conf.default
mkdir -pv $PKG/etc/openldap/schema
2017-09-11 13:31:41 +02:00
install -v -m644 examples/LDAP/README $PKG/etc/openldap/schema/README.LDAP
2016-02-24 01:27:23 +01:00
2017-09-11 13:31:41 +02:00
install -v -m644 examples/LDAP/samba* $PKG/etc/openldap/schema
2016-02-24 01:27:23 +01:00
2017-09-11 13:31:41 +02:00
install -v -m755 examples/LDAP/{get*,ol*} $PKG/etc/openldap/schema
2016-02-24 01:27:23 +01:00
2017-09-11 13:31:41 +02:00
#ld.conf
mkdir -pv $PKG/etc/ld.so.conf.d
cp -f $SRC/samba.conf $PKG/etc/ld.so.conf.d/
2016-02-24 01:27:23 +01:00
# cups
cd $PKG/usr/lib/
install -d cups/backend
ln -v -sf $PKG/usr/bin/smbspool $PKG/usr/lib/cups/backend/smb
2017-03-12 13:38:06 +01:00
# servis
2017-09-11 13:31:41 +02:00
cd /sources/milis.git/ayarlar/servisler
make DESTDIR=$PKG kur-samba
make DESTDIR=$PKG kur-winbindd
2017-03-12 13:38:06 +01:00
# Doublon
rm -f $PKG/usr/lib/python2.7/site-packages/talloc.so
2016-02-24 01:27:23 +01:00
}