aboutsummaryrefslogtreecommitdiffstats
path: root/security/sudosh3
diff options
context:
space:
mode:
authorcy <cy@FreeBSD.org>2005-10-27 01:14:38 +0800
committercy <cy@FreeBSD.org>2005-10-27 01:14:38 +0800
commitbaf201de316b2e1705fe16a7afca5f1d67d71151 (patch)
tree3c1b8dc254340ac5c17865bdb099a5751d7bfa78 /security/sudosh3
parent16985c03aa73fd9e7ccfa10f3a9e0f52d2b8c11a (diff)
downloadfreebsd-ports-gnome-baf201de316b2e1705fe16a7afca5f1d67d71151.tar.gz
freebsd-ports-gnome-baf201de316b2e1705fe16a7afca5f1d67d71151.tar.zst
freebsd-ports-gnome-baf201de316b2e1705fe16a7afca5f1d67d71151.zip
Make this port sysinstall friendly.
Diffstat (limited to 'security/sudosh3')
-rw-r--r--security/sudosh3/Makefile5
-rw-r--r--security/sudosh3/files/patch-src::Makefile.in5
-rw-r--r--security/sudosh3/pkg-message13
-rw-r--r--security/sudosh3/pkg-plist2
4 files changed, 6 insertions, 19 deletions
diff --git a/security/sudosh3/Makefile b/security/sudosh3/Makefile
index 579863b7ddfc..c99dd49b4f82 100644
--- a/security/sudosh3/Makefile
+++ b/security/sudosh3/Makefile
@@ -7,7 +7,7 @@
PORTNAME= sudosh
PORTVERSION= 1.8.2
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
MASTER_SITE_SUBDIR= ${PORTNAME:S/_/-/}
@@ -41,7 +41,4 @@ MAN8= sudosh-replay.8
BROKEN= "Does not compile on FreeBSD 4.x"
.endif
-post-install:
- @${CAT} ${PKGMESSAGE}
-
.include <bsd.port.post.mk>
diff --git a/security/sudosh3/files/patch-src::Makefile.in b/security/sudosh3/files/patch-src::Makefile.in
index e33811421ef7..81fcafdbceb1 100644
--- a/security/sudosh3/files/patch-src::Makefile.in
+++ b/security/sudosh3/files/patch-src::Makefile.in
@@ -1,6 +1,7 @@
--- src/Makefile.in.orig Sun Jun 12 19:33:29 2005
-+++ src/Makefile.in Tue Oct 25 10:06:54 2005
-@@ -428,6 +428,7 @@
++++ src/Makefile.in Wed Oct 26 06:59:17 2005
+@@ -427,7 +427,8 @@
+
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'
diff --git a/security/sudosh3/pkg-message b/security/sudosh3/pkg-message
deleted file mode 100644
index 6e65af7c9a9e..000000000000
--- a/security/sudosh3/pkg-message
+++ /dev/null
@@ -1,13 +0,0 @@
-
-****************************************************************************
-* *
-* If this is a brand new install, a copy a new copy of *
-* PREFIX/etc/sudoers.conf has been installed. Should you choose to *
-* uninstall sudosh, the sudoers.conf file will remain and should you *
-* choose to remove it, it must be manually deleted. Any previously *
-* existing sudoers.conf file has not been overwritten by this package. *
-* A reference copy of sudoers.conf may be found in *
-* PREFIX/etc/sudoers.conf.sample. *
-* *
-****************************************************************************
-
diff --git a/security/sudosh3/pkg-plist b/security/sudosh3/pkg-plist
index d922298d2fe0..43d308b7d677 100644
--- a/security/sudosh3/pkg-plist
+++ b/security/sudosh3/pkg-plist
@@ -1,3 +1,5 @@
+@unexec test -f %D/etc/sudosh.conf && cmp %D/etc/sudosh.conf.sample %D/etc/sudosh.conf > /dev/null 2>&1 && rm %D/etc/sudosh.conf && echo %D/etc/sudosh.conf has been removed; test -f %D/etc/sudosh.conf && echo %D/etc/sudosh.conf has not been removed; true
bin/sudosh
bin/sudosh-replay
etc/sudosh.conf.sample
+@exec test -f %D/etc/sudosh.conf || cp %D/etc/sudosh.conf.sample %D/etc/sudosh.conf