diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-11-09 21:47:09 -0200 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-11-09 21:47:09 -0200 |
commit | a851915f28923b2cd1979471c64d75e527f117cf (patch) | |
tree | a0cd3a72cfe2657d16a0275fe67e3745577cb9d5 /pcr | |
parent | 5b9506770ce84ac053de4d3500b56a1da84b1694 (diff) | |
parent | 39e7daddb73f205693ff52cae7f77601a1eaea00 (diff) | |
download | abslibre-a851915f28923b2cd1979471c64d75e527f117cf.tar.gz abslibre-a851915f28923b2cd1979471c64d75e527f117cf.tar.bz2 abslibre-a851915f28923b2cd1979471c64d75e527f117cf.zip |
Merge branch 'master' of ssh://projects.parabola.nu/~git/abslibre
Diffstat (limited to 'pcr')
-rw-r--r-- | pcr/inspircd/PKGBUILD | 12 | ||||
-rw-r--r-- | pcr/inspircd/inspircd.install | 2 | ||||
-rw-r--r-- | pcr/inspircd/inspircd.rcd | 54 | ||||
-rw-r--r-- | pcr/lua-cyrussasl/PKGBUILD | 4 | ||||
-rw-r--r-- | pcr/lua-cyrussasl/lua-cyrussasl.patch | 2 | ||||
-rw-r--r-- | pcr/opendnssec/PKGBUILD | 14 | ||||
-rw-r--r-- | pcr/opendnssec/pid-path.patch | 6 | ||||
-rw-r--r-- | pcr/tinc/PKGBUILD | 40 | ||||
-rw-r--r-- | pcr/tinc/tinc.install | 20 | ||||
-rw-r--r-- | pcr/tinc/tincd.conf | 2 | ||||
-rw-r--r-- | pcr/tinc/tincd.rcd | 48 | ||||
-rw-r--r-- | pcr/tinc/tincd@.service | 10 |
12 files changed, 72 insertions, 142 deletions
diff --git a/pcr/inspircd/PKGBUILD b/pcr/inspircd/PKGBUILD index 3de3d5e57..497f836d1 100644 --- a/pcr/inspircd/PKGBUILD +++ b/pcr/inspircd/PKGBUILD @@ -1,6 +1,6 @@ pkgname=inspircd -pkgver=2.0.8 -pkgrel=2 +pkgver=2.0.18 +pkgrel=1 pkgdesc='A lightweight IRC daemon' arch=('x86_64' 'i686' 'mips64el') url='http://www.inspircd.org/' @@ -20,10 +20,9 @@ optdepends=('gnutls: m_ssl_gnutls' 'tre: m_regex_tre') install=inspircd.install -source=(https://github.com/downloads/inspircd/inspircd/InspIRCd-$pkgver.tar.bz2 - inspircd.rcd inspircd.service) -sha1sums=('c8bcbc222df40bc8110cefdb4a1fee91ad7c73d1' - '59c4aa6929732fb076ca2be96a01385cae9e8484' +source=(https://github.com/inspircd/inspircd/archive/v$pkgver.tar.gz + inspircd.service) +sha1sums=('40039d9be51ad28493be16b27c9f20bc7fe617a4' '667b28d0d086be6daad7a0c2f110c68e6526264e') build() { @@ -53,7 +52,6 @@ build() { } package() { - install -Dm755 "${srcdir}"/inspircd.rcd "${pkgdir}"/etc/rc.d/inspircd install -Dm644 "${srcdir}"/inspircd.service "${pkgdir}"/usr/lib/systemd/system/inspircd.service install -o141 -g141 -dm750 "${pkgdir}/var/log/inspircd" diff --git a/pcr/inspircd/inspircd.install b/pcr/inspircd/inspircd.install index ec97113f5..2d1ce16f4 100644 --- a/pcr/inspircd/inspircd.install +++ b/pcr/inspircd/inspircd.install @@ -5,7 +5,7 @@ post_install() { echo '==> You will need to create a config file for inspircd' echo '==> cp /etc/inspircd/inspircd.conf.example /etc/inspircd/inspircd.conf' echo '==> You will need to change the pidfile. To do this you can insert the following into your config.' - echo '==> <pid file="/var/run/inspircd/inspircd.pid">' + echo '==> <pid file="/run/inspircd/inspircd.pid">' echo '==> Remember to use absolute paths in your config directory and not relative paths like you would do with a user-based inspircd install.' } diff --git a/pcr/inspircd/inspircd.rcd b/pcr/inspircd/inspircd.rcd deleted file mode 100644 index 5dbd8198e..000000000 --- a/pcr/inspircd/inspircd.rcd +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/bash - -. /etc/rc.conf -. /etc/rc.d/functions - -get_pid() { - pidof /usr/sbin/inspircd -} - -case "$1" in - start) - stat_busy "Starting inspircd" - PID=$(get_pid) - if [ -z "$PID" ]; then - su -s /bin/sh -c '/usr/sbin/inspircd --logfile /var/log/inspircd/startup.log --config /etc/inspircd/inspircd.conf' 'inspircd' > /dev/null - if [ $? -gt 0 ]; then - stat_fail - exit 1 - else - add_daemon inspircd - stat_done - fi - else - stat_fail - exit 1 - fi - ;; - - stop) - stat_busy "Stopping inspircd" - PID=$(get_pid) - [ ! -z "$PID" ] && kill $PID - if [ $? -gt 0 ]; then - stat_fail - exit 1 - else - rm_daemon inspircd - stat_done - fi - ;; - - restart) - $0 stop - $0 start - ;; - - rehash|reload) - kill -HUP $(get_pid) - ;; - - *) - echo "usage: $0 {start|stop|restart}" -esac -exit 0 diff --git a/pcr/lua-cyrussasl/PKGBUILD b/pcr/lua-cyrussasl/PKGBUILD index 987f51507..9e57498a6 100644 --- a/pcr/lua-cyrussasl/PKGBUILD +++ b/pcr/lua-cyrussasl/PKGBUILD @@ -2,7 +2,7 @@ pkgname=lua-cyrussasl pkgver=1.0.0 -pkgrel=2 +pkgrel=3 pkgdesc="Lua bindings for Cyrus SASL library." arch=('i686' 'x86_64' 'mips64el') url="http://github.com/JorjBauer/lua-cyrussasl" @@ -13,7 +13,7 @@ source=( "lua-cyrussasl.patch" ) md5sums=('40c94c06441e1e47640d81b125742969' - '838d383edc30f059ddae44cd564e0b82') + 'bdb7b8413f9b7d9598b7c8b820427751') build() { cd $srcdir/*-lua-cyrussasl-* diff --git a/pcr/lua-cyrussasl/lua-cyrussasl.patch b/pcr/lua-cyrussasl/lua-cyrussasl.patch index e119ccb3b..cf1229a3f 100644 --- a/pcr/lua-cyrussasl/lua-cyrussasl.patch +++ b/pcr/lua-cyrussasl/lua-cyrussasl.patch @@ -4,7 +4,7 @@ #LUAPATH=/usr/share/lua/5.1 #CPATH=/usr/lib/lua/5.1 -+# Linux (Arch Linux) ++# Arch/Parabola +CFLAGS=-g -O2 -fpic -I/usr/include/lua5.1 +LDFLAGS=-O -shared -fpic -lsasl2 +LUAPATH=/usr/share/lua/5.1 diff --git a/pcr/opendnssec/PKGBUILD b/pcr/opendnssec/PKGBUILD index 7fd21e3ec..54a880757 100644 --- a/pcr/opendnssec/PKGBUILD +++ b/pcr/opendnssec/PKGBUILD @@ -2,7 +2,7 @@ pkgname=opendnssec pkgver=1.4.0 -pkgrel=3 +pkgrel=4 pkgdesc="Turn-key solution for DNSSEC (sqlite3)" arch=('i686' 'x86_64' 'mips64el') url="http://www.opendnssec.org/" @@ -18,13 +18,13 @@ source=("http://www.opendnssec.org/files/source/${pkgname}-${pkgver}.tar.gz"{,.s "ods-enforcer.service") sha256sums=('36d4926dcdf351a527ad7600b151ab6cc56d0a472a7eb8871eecd70afef9e101' 'SKIP' - '487a4c05a07feb97c865ddc4c13d00eea6ce8b2b1e5031983c15484f4991ebed' + '1cc1c1ec75a5a5f2c35e019ac6dfd2153fa6f10705dc242aaf6ceb21796097f0' '1a8cdec0e97a33048956268b766da570f8f7a90d05af59e547219f1381832071' '75cecbfb0ece13957a68a5bc39c20a1d69b95373e7473545d70621e1732733d8') prepare() { cd "${srcdir}/${pkgname}-${pkgver}" - # /var/lib/run -> /var/run + # /var/lib/run -> /run patch -p0 -i "${srcdir}/pid-path.patch" aclocal @@ -42,7 +42,7 @@ build() { --with-pkcs11-softhsm=/usr/lib/libsofthsm.so \ --sbindir=/usr/bin - # Create the correct (/var/run/opendnssec) directory + # Create the correct (/run/opendnssec) directory sed -i \ -e "s/\$(INSTALL) -d \$(DESTDIR)\$(localstatedir)\/run\/opendnssec/#Removed/" \ -e "s/\$(INSTALL) -d \$(DESTDIR)\$(localstatedir)\/run/\$(INSTALL) -d \$(DESTDIR)\$(OPENDNSSEC_PID_DIR)/" \ @@ -54,7 +54,7 @@ build() { package() { cd "${srcdir}/${pkgname}-${pkgver}" - install -d "${pkgdir}/var/run/opendnssec" + install -d "${pkgdir}/run/opendnssec" make DESTDIR="${pkgdir}" install @@ -70,8 +70,8 @@ package() { chown -R 227:227 "${pkgdir}/etc/opendnssec" \ "${pkgdir}/var/lib/opendnssec" \ - "${pkgdir}/var/run/opendnssec" + "${pkgdir}/run/opendnssec" chmod 750 "${pkgdir}/etc/opendnssec" \ "${pkgdir}/var/lib/opendnssec" \ - "${pkgdir}/var/run/opendnssec" + "${pkgdir}/run/opendnssec" } diff --git a/pcr/opendnssec/pid-path.patch b/pcr/opendnssec/pid-path.patch index 88c750cf2..122b68e08 100644 --- a/pcr/opendnssec/pid-path.patch +++ b/pcr/opendnssec/pid-path.patch @@ -6,8 +6,8 @@ $(INSTALL) -d $(DESTDIR)$(localstatedir)/opendnssec/signed - $(INSTALL) -d $(DESTDIR)$(localstatedir)/run - $(INSTALL) -d $(DESTDIR)$(localstatedir)/run/opendnssec -+ $(INSTALL) -d $(DESTDIR)/var/run -+ $(INSTALL) -d $(DESTDIR)/var/run/opendnssec ++ $(INSTALL) -d $(DESTDIR)/run ++ $(INSTALL) -d $(DESTDIR)/run/opendnssec docs: (cd libhsm; $(MAKE) doxygen) @@ -18,7 +18,7 @@ OPENDNSSEC_SYSCONF_DIR=$full_sysconfdir/opendnssec OPENDNSSEC_LOCALSTATE_DIR="$full_localstatedir/opendnssec" -OPENDNSSEC_PID_DIR="$full_localstatedir/run/opendnssec" -+OPENDNSSEC_PID_DIR="/var/run/opendnssec" ++OPENDNSSEC_PID_DIR="/run/opendnssec" AC_SUBST([OPENDNSSEC_BIN_DIR]) AC_SUBST([OPENDNSSEC_SBIN_DIR]) diff --git a/pcr/tinc/PKGBUILD b/pcr/tinc/PKGBUILD index 87d3415e9..3612d8814 100644 --- a/pcr/tinc/PKGBUILD +++ b/pcr/tinc/PKGBUILD @@ -1,33 +1,39 @@ +# $Id: PKGBUILD 116886 2014-08-05 08:18:32Z tredaelli $ +# Maintainer: Timothy Redaelli <timothy.redaelli@gmail.com> +# Contributor: helios +# Contributor: Lothar Gesslein +# Contributor: Dominik George <nik@naturalnet.de> + pkgname=tinc -pkgver=1.0.16 -pkgrel=3 +pkgver=1.0.24 +pkgrel=2 pkgdesc="VPN (Virtual Private Network) daemon" -arch=(i686 x86_64 mips64el) +arch=('i686' 'x86_64' 'mips64el') url="http://www.tinc-vpn.org/" license=('GPL') -depends=('lzo2' 'zlib' 'openssl') -backup=(etc/conf.d/tincd.conf) -source=(http://www.tinc-vpn.org/packages/tinc-$pkgver.tar.gz - tincd.conf - tincd.rcd) -md5sums=('f1c7ed94878725fb2cf4efb02bf160da' - 'd4a42b4a474448c64dc8f5100480f569' - '89a91a80c1dee4b365958bd9e6242d5a') +depends=('lzo' 'openssl') +install=tinc.install +source=(http://www.tinc-vpn.org/packages/tinc-$pkgver.tar.gz{,.sig} + tincd@.service) +md5sums=('14a91eb2e85bdc0451a815612521b708' + 'SKIP' + '112327da32fdb56ab779fe004712235f') build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --sbindir=/usr/bin make } package() { cd "$srcdir/$pkgname-$pkgver" - make DESTDIR="$pkgdir" install - - install -d $pkgdir/etc/{tinc,rc.d,conf.d} + make DESTDIR="$pkgdir/" install + install -dm755 "$pkgdir"/usr/share/tinc/examples + tar xozvf doc/sample-config.tar.gz -C $pkgdir/usr/share/tinc/examples + find "$pkgdir"/usr/share/tinc/examples -type f -exec chmod 644 {} + + find "$pkgdir"/usr/share/tinc/examples -type d -exec chmod 755 {} + - install -Dm755 $srcdir/tincd.rcd $pkgdir/etc/rc.d/tincd - install -Dm755 $srcdir/tincd.conf $pkgdir/etc/conf.d/tincd.conf + install -Dm644 "$srcdir/tincd@.service" "$pkgdir/usr/lib/systemd/system/tincd@.service" } diff --git a/pcr/tinc/tinc.install b/pcr/tinc/tinc.install new file mode 100644 index 000000000..1b804fd8d --- /dev/null +++ b/pcr/tinc/tinc.install @@ -0,0 +1,20 @@ +infodir=/usr/share/info +filelist=(tinc.info.gz) + +post_install() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info $infodir/$file $infodir/dir 2> /dev/null + done +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info --delete $infodir/$file $infodir/dir 2> /dev/null + done +} diff --git a/pcr/tinc/tincd.conf b/pcr/tinc/tincd.conf deleted file mode 100644 index e86139b44..000000000 --- a/pcr/tinc/tincd.conf +++ /dev/null @@ -1,2 +0,0 @@ -NETNAME=yournetname -OPTIONS="-R -U nobody -L" diff --git a/pcr/tinc/tincd.rcd b/pcr/tinc/tincd.rcd deleted file mode 100644 index 16f39f8ca..000000000 --- a/pcr/tinc/tincd.rcd +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/bash - -daemon_name=tincd - -. /etc/rc.conf -. /etc/rc.d/functions -. /etc/conf.d/${daemon_name}.conf - -PIDFILE=/var/run/tinc.${NETNAME} -[ -f "${PIDFILE}" ] && PID=$(<${PIDFILE}) - -case "$1" in - start) - stat_busy "Starting ${daemon_name}" - [ -z "$PID" ] && \ - /usr/sbin/tincd -n ${NETNAME} \ - ${OPTIONS} \ - --pidfile=${PIDFILE} &> /dev/null - - if [ $? -gt 0 ]; then - stat_fail - else - add_daemon ${daemon_name} - stat_done - fi - ;; - stop) - stat_busy "Stopping ${daemon_name}" - [ ! -z "$PID" ] && /usr/sbin/tincd -n ${NETNAME} -k - if [ $? -gt 0 ]; then - stat_fail - else - rm_daemon ${daemon_name} - stat_done - fi - ;; - restart) - $0 stop - sleep 3 - $0 start - ;; - reload) - [ ! -z "$PID" ] && /usr/sbin/tincd -n ${NETNAME} -k HUP - ;; - *) - echo "usage: $0 {start|stop|restart|reload}" -esac -exit 0 diff --git a/pcr/tinc/tincd@.service b/pcr/tinc/tincd@.service new file mode 100644 index 000000000..069bf4570 --- /dev/null +++ b/pcr/tinc/tincd@.service @@ -0,0 +1,10 @@ +[Unit] +Description=Tinc daemon for net %i +After=network.target + +[Service] +Type=forking +ExecStart=/usr/bin/tincd -n %i + +[Install] +WantedBy=multi-user.target |