diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2015-07-30 18:30:00 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2015-07-30 18:30:00 +0800 |
commit | 19b315393fc2fae29d57fb4d15a8317cae1bced1 (patch) | |
tree | e3775ac4b114d4c862f947c2082528e3a2183cb5 /mail | |
parent | 2fef099aeb4a10af5e993bddba60756d77a4256f (diff) | |
download | freebsd-ports-gnome-19b315393fc2fae29d57fb4d15a8317cae1bced1.tar.gz freebsd-ports-gnome-19b315393fc2fae29d57fb4d15a8317cae1bced1.tar.zst freebsd-ports-gnome-19b315393fc2fae29d57fb4d15a8317cae1bced1.zip |
- Fix installed files owner/permissions: properly set these in plist according to what upstream makefile intends to do
- Strip binary
Diffstat (limited to 'mail')
-rw-r--r-- | mail/vqregister/Makefile | 7 | ||||
-rw-r--r-- | mail/vqregister/files/patch-Makefile | 5 | ||||
-rw-r--r-- | mail/vqregister/pkg-plist | 8 |
3 files changed, 15 insertions, 5 deletions
diff --git a/mail/vqregister/Makefile b/mail/vqregister/Makefile index 33ad81d6e473..98db198af41d 100644 --- a/mail/vqregister/Makefile +++ b/mail/vqregister/Makefile @@ -3,7 +3,7 @@ PORTNAME= vqregister PORTVERSION= 2.6 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= mail www MASTER_SITES= http://www.inter7.com/vqregister/ @@ -13,18 +13,21 @@ COMMENT= Admin-configurable email user signup CGI BUILD_DEPENDS= vpopmail>0:${PORTSDIR}/mail/vpopmail RUN_DEPENDS= vpopmail>0:${PORTSDIR}/mail/vpopmail -USES= fakeroot USE_APACHE_RUN= 22+ VPOPMAIL_DIR?= ${LOCALBASE}/vpopmail USE_MYSQL= yes MAKE_ENV= VDIR=${VPOPMAIL_DIR} WWWDIR=${STAGEDIR}${WWWDIR} +USERS= vpopmail +GROUPS= vchkpw + DOCS= CONFIG CONTRIBUTORS FORM HISTORY TEMPLATE OPTIONS_DEFINE= DOCS post-install: + ${STRIP_CMD} ${STAGEDIR}${WWWDIR}/${PORTNAME}.cgi @${MKDIR} ${STAGEDIR}${DOCSDIR} (cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}) diff --git a/mail/vqregister/files/patch-Makefile b/mail/vqregister/files/patch-Makefile index db867309f413..e97c6897c8d5 100644 --- a/mail/vqregister/files/patch-Makefile +++ b/mail/vqregister/files/patch-Makefile @@ -22,12 +22,13 @@ INSTALL_BIN = vqregister.cgi INSTALL_UID = vpopmail INSTALL_GID = vchkpw -@@ -54,8 +54,6 @@ install: $(BIN) +@@ -54,9 +54,6 @@ install: $(BIN) cp html/* $(INSTALL_DIR)/html cp vqregister.email $(INSTALL_DIR) cp vqregister.conf $(INSTALL_DIR) - chown -R $(INSTALL_UID) $(INSTALL_DIR) - chgrp -R $(INSTALL_GID) $(INSTALL_DIR) - chmod u+s $(INSTALL_DIR)/$(INSTALL_BIN) +- chmod u+s $(INSTALL_DIR)/$(INSTALL_BIN) clean: + @echo -n "Cleaning up..." diff --git a/mail/vqregister/pkg-plist b/mail/vqregister/pkg-plist index 4d15db506fdf..e2335b1043b1 100644 --- a/mail/vqregister/pkg-plist +++ b/mail/vqregister/pkg-plist @@ -3,6 +3,8 @@ %%PORTDOCS%%%%DOCSDIR%%/FORM %%PORTDOCS%%%%DOCSDIR%%/HISTORY %%PORTDOCS%%%%DOCSDIR%%/TEMPLATE +@owner vpopmail +@group vchkpw %%WWWDIR%%/html/error.html %%WWWDIR%%/html/failure.html %%WWWDIR%%/html/init_error.html @@ -10,6 +12,10 @@ %%WWWDIR%%/html/register.with.password.html %%WWWDIR%%/html/success.html %%WWWDIR%%/html/success.with.password.html -%%WWWDIR%%/vqregister.cgi +@(vpopmail,vchkpw,4755) %%WWWDIR%%/vqregister.cgi %%WWWDIR%%/vqregister.conf %%WWWDIR%%/vqregister.email +@dir %%WWWDIR%%/html +@dir %%WWWDIR%% +@owner +@group |