aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2015-10-07 02:26:29 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2015-10-07 02:26:29 +0800
commit784245cf177421c9c43326815dd493b0b81cc095 (patch)
treec68f6b039a56070235d4b64b2995629ee0aa3b7b /mail
parent796223348d8848761d8d9269751c48952f9d94fc (diff)
downloadfreebsd-ports-gnome-784245cf177421c9c43326815dd493b0b81cc095.tar.gz
freebsd-ports-gnome-784245cf177421c9c43326815dd493b0b81cc095.tar.zst
freebsd-ports-gnome-784245cf177421c9c43326815dd493b0b81cc095.zip
- Fix install from non-root
- Strip binary - Drop @dirrm* from plist
Diffstat (limited to 'mail')
-rw-r--r--mail/qmailadmin/Makefile5
-rw-r--r--mail/qmailadmin/files/patch-Makefile.am11
-rw-r--r--mail/qmailadmin/pkg-plist6
3 files changed, 15 insertions, 7 deletions
diff --git a/mail/qmailadmin/Makefile b/mail/qmailadmin/Makefile
index c8e9e490685b..36815d9e3249 100644
--- a/mail/qmailadmin/Makefile
+++ b/mail/qmailadmin/Makefile
@@ -3,7 +3,7 @@
PORTNAME= qmailadmin
PORTVERSION= 1.2.15
-PORTREVISION= 6
+PORTREVISION= 7
PORTEPOCH= 2
CATEGORIES= mail www
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-stable/${PORTVERSION} \
@@ -104,7 +104,8 @@ LIBS+= -L${LOCALBASE}/lib -lcrack
VPOPMAIL_DIR?= ${LOCALBASE}/vpopmail
-GNU_CONFIGURE= YES
+GNU_CONFIGURE= yes
+INSTALL_TARGET= install-strip
# Notes and comments:
#
diff --git a/mail/qmailadmin/files/patch-Makefile.am b/mail/qmailadmin/files/patch-Makefile.am
new file mode 100644
index 000000000000..e6a69186451d
--- /dev/null
+++ b/mail/qmailadmin/files/patch-Makefile.am
@@ -0,0 +1,11 @@
+--- Makefile.am.orig 2010-03-26 06:08:58 UTC
++++ Makefile.am
+@@ -14,7 +14,7 @@ VERSION=@QA_VERSION@
+ #
+ # Install qmailadmin setuid to @vpopuser@
+ #
+-INSTALL_PROGRAM=${INSTALL} -o @vpopuser@ -m 6755 -g @vpopgroup@ $(AM_INSTALL_PROGRAM_FLAGS)
++INSTALL_PROGRAM=${INSTALL} $(AM_INSTALL_PROGRAM_FLAGS)
+ INSTALL_STRIP_PROGRAM=${INSTALL_PROGRAM} -s
+
+ bindir=@cgibindir@
diff --git a/mail/qmailadmin/pkg-plist b/mail/qmailadmin/pkg-plist
index d143383cb94f..828e75359114 100644
--- a/mail/qmailadmin/pkg-plist
+++ b/mail/qmailadmin/pkg-plist
@@ -54,7 +54,7 @@
%%DATADIR%%/lang/tr
%%DATADIR%%/lang/zh-cn
@cwd %%WEBPREFIX%%
-%%CGIBINDIR%%/%%CGIBINSUBDIR%%/qmailadmin
+@(vpopmail,vchkpw,6755) %%CGIBINDIR%%/%%CGIBINSUBDIR%%/qmailadmin
%%WEBDATADIR%%/%%WEBDATASUBDIR%%/images/delete.png
%%WEBDATADIR%%/%%WEBDATASUBDIR%%/images/disabled.png
%%WEBDATADIR%%/%%WEBDATASUBDIR%%/images/lowerleft.png
@@ -76,12 +76,8 @@
%%WEBDATADIR%%/%%WEBDATASUBDIR%%/images/uppermiddle1.png
%%WEBDATADIR%%/%%WEBDATASUBDIR%%/images/uppermiddle2.png
%%WEBDATADIR%%/%%WEBDATASUBDIR%%/images/upperright.png
-@dirrm %%WEBDATADIR%%/%%WEBDATASUBDIR%%/images
@unexec rmdir %%WEBPREFIX%%/%%WEBDATADIR%%/%%WEBDATASUBDIR%% 2> /dev/null || true
@unexec rmdir %%WEBPREFIX%%/%%WEBDATADIR%% 2> /dev/null || true
@unexec rmdir %%WEBPREFIX%%/%%CGIBINDIR%%/%%CGIBINSUBDIR%% 2> /dev/null || true
@unexec rmdir %%WEBPREFIX%%/%%CGIBINDIR%% 2> /dev/null || true
@cwd %%REAL_PREFIX%%
-@dirrm %%DATADIR%%/html
-@dirrm %%DATADIR%%/lang
-@dirrm %%DATADIR%%