summaryrefslogtreecommitdiff
path: root/system/sudosh2
diff options
context:
space:
mode:
authorDavid Spencer <baildon.research@googlemail.com>2016-05-29 12:24:20 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-06-01 23:54:53 +0700
commit222fe7eb23626673694d1bb5a8c0cfa1d7e30d8a (patch)
treec0c31d061d6332fa18a51964e8d95c504b09f2a4 /system/sudosh2
parent38c5cf743d12b311fa318731b562c6677ae847ba (diff)
downloadslackbuilds-222fe7eb23626673694d1bb5a8c0cfa1d7e30d8a.tar.gz
system/sudosh2: Fixed install path.
Signed-off-by: David Spencer <baildon.research@googlemail.com>
Diffstat (limited to 'system/sudosh2')
-rw-r--r--system/sudosh2/sudosh2-destdir.patch13
-rw-r--r--system/sudosh2/sudosh2.SlackBuild14
-rw-r--r--system/sudosh2/sudosh2.info2
3 files changed, 21 insertions, 8 deletions
diff --git a/system/sudosh2/sudosh2-destdir.patch b/system/sudosh2/sudosh2-destdir.patch
new file mode 100644
index 0000000000..eb1ba17d92
--- /dev/null
+++ b/system/sudosh2/sudosh2-destdir.patch
@@ -0,0 +1,13 @@
+diff -u -r sudosh2-1.0.4-orig/src/Makefile.am sudosh2-1.0.4/src/Makefile.am
+--- sudosh2-1.0.4-orig/src/Makefile.am 2010-07-09 21:37:01.000000000 +0100
++++ sudosh2-1.0.4/src/Makefile.am 2016-05-29 11:51:19.902051323 +0100
+@@ -7,7 +7,7 @@
+ sysconfdir = @sysconfdir@
+
+ install-sudosh.conf:
+- test -z "$(sysconfdir)" || $(mkdir_p) "$(DESTDIR)$(sysconfdir)"
+- test -f $(sysconfdir)/sudosh.conf || $(INSTALL) -o 0 -g 0 -m 0444 '$(srcdir)/sudosh.conf' '$(sysconfdir)/sudosh.conf'
++ $(mkdir_p) "$(DESTDIR)$(sysconfdir)"
++ $(INSTALL) -o 0 -g 0 -m 0444 '$(srcdir)/sudosh.conf' '$(DESTDIR)$(sysconfdir)/sudosh.conf'
+
+ install: install-am install-sudosh.conf
diff --git a/system/sudosh2/sudosh2.SlackBuild b/system/sudosh2/sudosh2.SlackBuild
index 6035343615..5cbcf02663 100644
--- a/system/sudosh2/sudosh2.SlackBuild
+++ b/system/sudosh2/sudosh2.SlackBuild
@@ -71,10 +71,13 @@ tar xvf $CWD/$PRGNAM-$VERSION.tgz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+patch -p1 < $CWD/sudosh2-destdir.patch
+autoreconf -vif
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -90,9 +93,6 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install-strip DESTDIR=$PKG
-# manually install the conf file
-install -m 0644 -D $TMP/$PRGNAM-$VERSION/src/sudosh.conf $PKG/etc/sudosh.conf.new
-
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
diff --git a/system/sudosh2/sudosh2.info b/system/sudosh2/sudosh2.info
index 4f8382c171..e3e072e798 100644
--- a/system/sudosh2/sudosh2.info
+++ b/system/sudosh2/sudosh2.info
@@ -1,6 +1,6 @@
PRGNAM="sudosh2"
VERSION="1.0.4"
-HOMEPAGE="http://www.shortcutsolutions.net/sudosh2-shell-auditing-software.html"
+HOMEPAGE="https://github.com/squash/sudosh2"
DOWNLOAD="http://downloads.sourceforge.net/project/sudosh2/sudosh2-1.0.4.tgz"
MD5SUM="28c0b6cfd60299a6c339cf9b07f2367f"
DOWNLOAD_x86_64=""