[arch-commits] Commit in ultimate-ircd/trunk (PKGBUILD ircd.install)
Sergej Pupykin
spupykin at archlinux.org
Tue Feb 10 17:46:02 UTC 2015
Date: Tuesday, February 10, 2015 @ 18:46:02
Author: spupykin
Revision: 127525
upgpkg: ultimate-ircd 3.0.2-8
upd
Modified:
ultimate-ircd/trunk/PKGBUILD
ultimate-ircd/trunk/ircd.install
--------------+
PKGBUILD | 4 ++--
ircd.install | 34 ++++++++--------------------------
2 files changed, 10 insertions(+), 28 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-02-10 17:44:10 UTC (rev 127524)
+++ PKGBUILD 2015-02-10 17:46:02 UTC (rev 127525)
@@ -4,7 +4,7 @@
pkgname=ultimate-ircd
pkgver=3.0.2
-pkgrel=7
+pkgrel=8
pkgdesc="ultimate irc server"
arch=(i686 x86_64)
url="http://www.shadow-realm.org/"
@@ -39,7 +39,7 @@
done
cd include && patch -N <../../conf-fix.patch && cd ..
- make || return 1
+ make
}
package() {
Modified: ircd.install
===================================================================
--- ircd.install 2015-02-10 17:44:10 UTC (rev 127524)
+++ ircd.install 2015-02-10 17:46:02 UTC (rev 127525)
@@ -1,31 +1,13 @@
-pre_install() {
- /bin/true
-}
-
post_install() {
- groupadd irc
- useradd -G irc -d /var/lib/ircd ircd
- chown -R ircd.irc /var/log/ircd
- chown -R ircd.irc /var/lib/ircd
- chown -R ircd.irc /var/run/ircd
+ groupadd -r irc
+ useradd -r -G irc -d /var/lib/ircd ircd
+ chown -R ircd:irc var/log/ircd
+ chown -R ircd:irc var/lib/ircd
+ chown -R ircd:irc var/run/ircd
}
-pre_upgrade() {
- /bin/true
-}
-
post_upgrade() {
- chown -R ircd.irc /var/log/ircd
- chown -R ircd.irc /var/lib/ircd
- chown -R ircd.irc /var/run/ircd
+ chown -R ircd:irc var/log/ircd
+ chown -R ircd:irc var/lib/ircd
+ chown -R ircd:irc var/run/ircd
}
-
-pre_remove() {
- /bin/true
-}
-
-post_remove() {
- userdel ircd
- groupdel irc
-}
-
More information about the arch-commits
mailing list