diff options
Diffstat (limited to 'community/unrealircd')
-rw-r--r-- | community/unrealircd/PKGBUILD | 12 | ||||
-rwxr-xr-x | community/unrealircd/unrealircd.rc | 3 |
2 files changed, 9 insertions, 6 deletions
diff --git a/community/unrealircd/PKGBUILD b/community/unrealircd/PKGBUILD index 51267430a..6e0d58232 100644 --- a/community/unrealircd/PKGBUILD +++ b/community/unrealircd/PKGBUILD @@ -1,16 +1,15 @@ -# $Id: PKGBUILD 58295 2011-11-10 13:02:48Z spupykin $ +# $Id: PKGBUILD 60367 2011-12-12 09:58:46Z spupykin $ # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> # Contributor: Zerial <fernando@zerial.org> pkgname=unrealircd pkgver=3.2.9 -pkgrel=1 +pkgrel=2 pkgdesc="Open Source IRC Server" arch=('i686' 'x86_64') url="http://unrealircd.com" license=('GPL2') -depends=('openssl' 'curl') -makedepends=('c-ares') +depends=('openssl' 'curl' 'c-ares') conflicts=('ircd') provides=('ircd') backup=(etc/unrealircd/unrealircd.conf) @@ -18,7 +17,7 @@ source=(http://www.unrealircd.com/downloads/Unreal$pkgver.tar.gz unrealircd.rc arch-fixes.patch) md5sums=('bde023695347969f545ce5f2a9ac9aed' - '0d728240132a97a2cef61be9558750b1' + '07ffa1e82a01f319a8b997e155d2af1d' '77807313c4578f2c30286b9f9e3fb21c') build() { @@ -56,6 +55,9 @@ build() { touch $pkgdir/var/log/unrealircd/ircd.log ln -s /var/log/unrealircd/ircd.log $pkgdir/etc/unrealircd/ircd.log + mkdir -p $pkgdir/etc/conf.d/ + echo 'UNREALIRCD_USER=root' >$pkgdir/etc/conf.d/unrealircd + find $pkgdir/usr -type f -exec chmod ugo+r {} \; find $pkgdir/usr -type d -exec chmod ugo+rx {} \; } diff --git a/community/unrealircd/unrealircd.rc b/community/unrealircd/unrealircd.rc index 551781760..2cede46c8 100755 --- a/community/unrealircd/unrealircd.rc +++ b/community/unrealircd/unrealircd.rc @@ -2,6 +2,7 @@ daemon_name=unrealircd +. /etc/conf.d/unrealircd . /etc/rc.conf . /etc/rc.d/functions @@ -18,7 +19,7 @@ case "$1" in [ -f /var/run/$daemon_name.pid ] && rm -f /var/run/$daemon_name.pid # RUN export PID_FILE="/var/run/unrealircd.pid" - /usr/bin/unrealircd 1>>/var/log/unrealircd/ircd.log 2>>/var/log/unrealircd/ircd.log + su -c /usr/bin/unrealircd -p - $UNREALIRCD_USER 1>>/var/log/unrealircd/ircd.log 2>>/var/log/unrealircd/ircd.log # if [ $? -gt 0 ]; then stat_fail |