summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJavier Torres2017-03-24 20:56:33 +0100
committerJavier Torres2017-03-24 20:56:33 +0100
commit011005d249fa05b9527ec9d4efba164e5b5f62b2 (patch)
tree7b7f43fa2b43bfabc234b9cfba111d4e0b3f186f
parentbca742cde4a437d708562bfeaa0e8c11e35ab734 (diff)
downloadaur-011005d249fa05b9527ec9d4efba164e5b5f62b2.tar.gz
Update to 1.3.6, rename systemd script to dirsrv
-rw-r--r--.SRCINFO9
-rw-r--r--389-ds-base.install12
-rw-r--r--PKGBUILD11
3 files changed, 18 insertions, 14 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 67d56e0a59e..8f416be1fbc 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,15 @@
# Generated by mksrcinfo v8
-# Thu Jan 19 19:53:58 UTC 2017
+# Fri Mar 24 19:55:36 UTC 2017
pkgbase = 389-ds-base
pkgdesc = 389 Directory Server (base)
- pkgver = 1.3.5.15
+ pkgver = 1.3.6.1
pkgrel = 1
url = http://port389.org/
install = 389-ds-base.install
arch = i686
arch = x86_64
license = GPL
+ makedepends = doxygen
depends = cyrus-sasl
depends = cyrus-sasl-gssapi
depends = icu
@@ -27,8 +28,8 @@ pkgbase = 389-ds-base
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.5.15.tar.bz2
- sha512sums = af1e82f5de80e493241c9d58f0127cd24517e18305ec0ba918bff8b2fa96dc69b32d7172d9b411a544251abfc04098ea9d0c1b41bf9d88e6caaaeae9cb15200b
+ source = http://www.port389.org/binaries/389-ds-base-1.3.6.1.tar.bz2
+ sha512sums = aaccea52d95d0a6b453c04a4dccb7347312963d50b8ba72a32765ca6b86337c3038ed7481bb3cac2476471912789863f513f71ce6b88b9b58e51832df4117085
pkgname = 389-ds-base
diff --git a/389-ds-base.install b/389-ds-base.install
index a31d7388435..73e304521d1 100644
--- a/389-ds-base.install
+++ b/389-ds-base.install
@@ -1,6 +1,10 @@
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"
+ OLD=$(echo $2 | sed "s/\(.*\)\.\(.*\)\.\(.*\)\.\(.*\)/\1\.\2.\3/g")
+ NEW=$(echo $1 | sed "s/\(.*\)\.\(.*\)\.\(.*\)\.\(.*\)/\1\.\2.\3/g")
+ if [ $OLD == "1.3.5" -a $NEW == "1.3.6" ]; then
+ echo ">> NOTICE: UPGRADE TO 1.3.6"
+ echo "This update renames the systemd files"
+ echo "Stop the old services and start the new ones with:"
+ echo "systemctl stop 389-ds-base.target; systemctl daemon-reload; systemctl start dirsrv.target"
+ fi
}
diff --git a/PKGBUILD b/PKGBUILD
index 89c6970ae4d..d8d3cbc139e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
BUILD_SELINUX=false
pkgname=389-ds-base
-pkgver=1.3.5.15
+pkgver=1.3.6.1
pkgrel=1
pkgdesc="389 Directory Server (base)"
arch=(i686 x86_64)
@@ -12,6 +12,7 @@ url="http://port389.org/"
license=(GPL)
depends=(cyrus-sasl cyrus-sasl-gssapi icu lm_sensors net-snmp libsystemd
openldap perl-mozldap perl-netaddr-ip perl-socket 'svrcore>=4.1.2')
+makedepends=(doxygen)
if [[ "${BUILD_SELINUX}" = "true" ]]; then
depends+=(selinux-usr-policycoreutils)
@@ -25,7 +26,7 @@ backup=(etc/default/dirsrv
options=(!libtool)
install=${pkgname}.install
source=("http://www.port389.org/binaries/${pkgname}-${pkgver}.tar.bz2")
-sha512sums=('af1e82f5de80e493241c9d58f0127cd24517e18305ec0ba918bff8b2fa96dc69b32d7172d9b411a544251abfc04098ea9d0c1b41bf9d88e6caaaeae9cb15200b')
+sha512sums=('aaccea52d95d0a6b453c04a4dccb7347312963d50b8ba72a32765ca6b86337c3038ed7481bb3cac2476471912789863f513f71ce6b88b9b58e51832df4117085')
build() {
cd "${pkgname}-${pkgver}"
@@ -39,7 +40,7 @@ build() {
export USE_64=1
fi
- autoreconf
+ ./autogen.sh
./configure \
--prefix=/usr \
@@ -50,7 +51,6 @@ build() {
--with-systemd \
--with-systemdsystemunitdir=/usr/lib/systemd/system \
--with-systemdsystemconfdir=/etc/systemd/system \
- --with-systemdgroupname=${pkgname}.target \
--enable-autobind \
--with-openldap \
${selinux} \
@@ -69,8 +69,7 @@ package() {
make -j1 DESTDIR="${pkgdir}/" install
install -dm755 "${pkgdir}"/var/log/${pkgname}/ \
- "${pkgdir}"/var/lib/${pkgname}/ \
- "${pkgdir}"/etc/systemd/system/${pkgname}.target.wants
+ "${pkgdir}"/var/lib/${pkgname}/
find "${pkgdir}" -type f -name '*.a' -delete
}