diff options
author | Javier Torres | 2015-06-09 17:10:28 +0200 |
---|---|---|
committer | Javier Torres | 2015-06-09 17:10:28 +0200 |
commit | 40afb88c9ab84d41c8f2ea887ce6979fc8c81b1b (patch) | |
tree | 626a52a8bdb6a08cdf0f93db7e2a53d1c517a9d1 | |
download | aur-40afb88c9ab84d41c8f2ea887ce6979fc8c81b1b.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 38 | ||||
-rw-r--r-- | 389-ds-base.install | 6 | ||||
-rw-r--r-- | PKGBUILD | 72 |
3 files changed, 116 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..8e36c3484738 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,38 @@ +pkgbase = 389-ds-base + pkgdesc = 389 Directory Server (base) + pkgver = 1.3.3.10 + pkgrel = 1 + url = http://port389.org/ + install = 389-ds-base.install + arch = i686 + arch = x86_64 + license = GPL + depends = db + depends = cyrus-sasl + depends = cyrus-sasl-gssapi + depends = icu + depends = lm_sensors + depends = net-snmp + depends = nspr + depends = nss + depends = openldap + depends = openssl + depends = pcre + depends = perl-mozldap + depends = perl-netaddr-ip + depends = perl-socket + depends = svrcore + depends = tcp_wrappers + depends = zlib + options = !libtool + backup = etc/default/dirsrv + backup = etc/default/dirsrv.systemd + backup = etc/dirsrv/config/certmap.conf + backup = etc/dirsrv/config/ldap-agent.conf + backup = etc/dirsrv/config/slapd-collations.conf + backup = etc/dirsrv/config/template-initconfig + source = http://www.port389.org/binaries/389-ds-base-1.3.3.10.tar.bz2 + sha512sums = bb07f18f8c4f0666d32606feae07b4481f949277ccc92a746fa1128c3dcc0a60af94b0261fb001cadee146bc1492d8a6ba10cbea43ac6474da70af16912197fe + +pkgname = 389-ds-base + diff --git a/389-ds-base.install b/389-ds-base.install new file mode 100644 index 000000000000..a31d73884354 --- /dev/null +++ b/389-ds-base.install @@ -0,0 +1,6 @@ +post_upgrade() { + echo "Important: Update 389-ds-base instances by stopping the appropriate systemd" + echo "services and running:" + echo + echo " /usr/bin/setup-ds.pl -u -s General.UpdateMode=offline" +} diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a3ca9db3b810 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,72 @@ +# Maintainer: Javier Torres <javitonino [at] gmail [dot] com> +# Contributor: Xiao-Long Chen <chenxiaolong@cxl.epac.to> + +BUILD_SELINUX=false + +pkgname=389-ds-base +pkgver=1.3.3.10 +pkgrel=1 +pkgdesc="389 Directory Server (base)" +arch=(i686 x86_64) +url="http://port389.org/" +license=(GPL) +depends=(db cyrus-sasl cyrus-sasl-gssapi icu lm_sensors net-snmp nspr nss + openldap openssl pcre perl-mozldap perl-netaddr-ip perl-socket svrcore + tcp_wrappers zlib) +if [[ "${BUILD_SELINUX}" = "true" ]]; then + depends+=(selinux-usr-policycoreutils) +fi +backup=(etc/default/dirsrv + etc/default/dirsrv.systemd + etc/dirsrv/config/certmap.conf + etc/dirsrv/config/ldap-agent.conf + etc/dirsrv/config/slapd-collations.conf + etc/dirsrv/config/template-initconfig) +options=(!libtool) +install=${pkgname}.install +source=("http://www.port389.org/binaries/${pkgname}-${pkgver}.tar.bz2") +sha512sums=('bb07f18f8c4f0666d32606feae07b4481f949277ccc92a746fa1128c3dcc0a60af94b0261fb001cadee146bc1492d8a6ba10cbea43ac6474da70af16912197fe') + +build() { + cd "${pkgname}-${pkgver}" + + local selinux="" + if [[ "${BUILD_SELINUX}" = "true" ]]; then + selinux="--with-selinux" + fi + + if [[ "${CARCH}" = "x86_64" ]]; then + export USE_64=1 + fi + + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --sbindir=/usr/bin \ + --with-tmpfiles-d=/usr/lib/tmpfiles.d \ + --with-systemdsystemunitdir=/usr/lib/systemd/system \ + --with-systemdsystemconfdir=/etc/systemd/system \ + --with-systemdgroupname=${pkgname}.target \ + --enable-autobind \ + --with-openldap \ + ${selinux} \ + #--disable-static + + make +} + +check() { + cd "${pkgname}-${pkgver}" + make check +} + +package() { + cd "${pkgname}-${pkgver}" + make -j1 DESTDIR="${pkgdir}/" install + + install -dm755 "${pkgdir}"/var/log/${pkgname}/ \ + "${pkgdir}"/var/lib/${pkgname}/ \ + "${pkgdir}"/etc/systemd/system/${pkgname}.target.wants + + find "${pkgdir}" -type f -name '*.a' -delete +} |