summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Spencer <idlemoor@slackbuilds.org>2016-01-20 01:18:17 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-01-20 23:59:30 +0700
commite3ece7f12affddcdb55e94ba6b6c2580d9fae165 (patch)
treefd964d94fca0c68fc56093b3e4bec8f1117097e5
parent7262bffedbe337816f26e3000721d9a4a3bfc818 (diff)
downloadslackbuilds-e3ece7f12affddcdb55e94ba6b6c2580d9fae165.tar.gz
network/elemental-ircd: Support alt tarball name, fix doinst.sh.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
-rw-r--r--network/elemental-ircd/doinst.sh10
-rw-r--r--network/elemental-ircd/elemental-ircd.SlackBuild2
2 files changed, 6 insertions, 6 deletions
diff --git a/network/elemental-ircd/doinst.sh b/network/elemental-ircd/doinst.sh
index e8bbf30335..e99e1995fe 100644
--- a/network/elemental-ircd/doinst.sh
+++ b/network/elemental-ircd/doinst.sh
@@ -32,8 +32,8 @@ config etc/elemental-ircd/ircd.motd.new
# Set up user/group permissions
groupadd -g $IRCD_GID $IRCD_UNAME 2>/dev/null
-useradd -u $IRCD_UID -g $IRCD_GID -d /var/lib/elemental-ircd $IRCD_UNAME 2>/dev/null
-chown $IRCD_UID:$IRCD_GID /var/run/elemental-ircd
-chown $IRCD_UID:$IRCD_GID /var/log/elemental-ircd
-chown $IRCD_UID:$IRCD_GID /var/lib/elemental-ircd
-chown $IRCD_UID:$IRCD_GID /var/state/elemental-ircd
+useradd -u $IRCD_UID -g $IRCD_GID -d var/lib/elemental-ircd $IRCD_UNAME 2>/dev/null
+chown $IRCD_UID:$IRCD_GID var/run/elemental-ircd
+chown $IRCD_UID:$IRCD_GID var/log/elemental-ircd
+chown $IRCD_UID:$IRCD_GID var/lib/elemental-ircd
+chown $IRCD_UID:$IRCD_GID var/state/elemental-ircd
diff --git a/network/elemental-ircd/elemental-ircd.SlackBuild b/network/elemental-ircd/elemental-ircd.SlackBuild
index 0b8876132d..1207cd9637 100644
--- a/network/elemental-ircd/elemental-ircd.SlackBuild
+++ b/network/elemental-ircd/elemental-ircd.SlackBuild
@@ -65,7 +65,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/$PRGNAM-$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$PRGNAM-$VERSION
chown -R root:root .
find -L . \