diff options
author | Adam Weinberger <adamw@FreeBSD.org> | 2014-05-01 16:36:47 +0000 |
---|---|---|
committer | Adam Weinberger <adamw@FreeBSD.org> | 2014-05-01 16:36:47 +0000 |
commit | eea372244ffcd0b4997b558efb39cc9a4fea243d (patch) | |
tree | 603c29074f43101e1fb9b1f14d775bf990bbeda7 /mail/squirrelmail | |
parent | b83ffb5777c44a87dcd188f476c2ca3b9d2bb791 (diff) |
Small cleanups, let pkg-create do permissions and ownerships its own
way rather than invoking chown and chmod ourselves.
Notes
Notes:
svn path=/head/; revision=352759
Diffstat (limited to 'mail/squirrelmail')
-rw-r--r-- | mail/squirrelmail/Makefile | 8 | ||||
-rw-r--r-- | mail/squirrelmail/pkg-plist | 16 |
2 files changed, 15 insertions, 9 deletions
diff --git a/mail/squirrelmail/Makefile b/mail/squirrelmail/Makefile index 3e9b023e6ab0..3f78524d5acc 100644 --- a/mail/squirrelmail/Makefile +++ b/mail/squirrelmail/Makefile @@ -97,13 +97,11 @@ do-install: @${MKDIR} ${STAGEDIR}${SQUIRRELDIR} ${INSTALL_DATA} ${WRKSRC}/index.php ${STAGEDIR}${SQUIRRELDIR} ${INSTALL_SCRIPT} ${WRKSRC}/configure ${STAGEDIR}${SQUIRRELDIR} - cd ${WRKSRC} && \ + (cd ${WRKSRC} && \ ${FIND} attach class config data functions help images include locale plugins po scripts src themes \ - | ${CPIO} -pdmu --quiet ${STAGEDIR}${SQUIRRELDIR} - ${CHMOD} 730 ${STAGEDIR}${SQUIRRELDIR}/attach - ${CHMOD} 750 ${STAGEDIR}${SQUIRRELDIR}/data + | ${CPIO} -pdmu --quiet ${STAGEDIR}${SQUIRRELDIR}) @${MKDIR} ${STAGEDIR}${DOCSDIR} - cd ${WRKSRC}/doc && ${FIND} . | ${CPIO} -pdmu --quiet ${STAGEDIR}${DOCSDIR} + (cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}) .include <bsd.port.mk> diff --git a/mail/squirrelmail/pkg-plist b/mail/squirrelmail/pkg-plist index 9041ce8b8f44..e0a246602b10 100644 --- a/mail/squirrelmail/pkg-plist +++ b/mail/squirrelmail/pkg-plist @@ -1,7 +1,5 @@ etc/periodic/daily/111.clean-squirrelmail %%SQUIRRELDIR%%/attach/.htaccess -@exec chown %%SMUSER%%:%%SMGROUP%% %B -@exec chmod 730 %B %%SQUIRRELDIR%%/class/.htaccess %%SQUIRRELDIR%%/class/deliver/Deliver.class.php %%SQUIRRELDIR%%/class/deliver/Deliver_IMAP.class.php @@ -31,8 +29,6 @@ etc/periodic/daily/111.clean-squirrelmail %%SQUIRRELDIR%%/data/.htaccess @sample %%SQUIRRELDIR%%/data/default_pref.sample %%SQUIRRELDIR%%/data/index.php -@exec chown %%SMUSER%%:%%SMGROUP%% %B -@exec chmod 750 %B %%SQUIRRELDIR%%/functions/.htaccess %%SQUIRRELDIR%%/functions/abook_database.php %%SQUIRRELDIR%%/functions/abook_ldap_server.php @@ -502,13 +498,25 @@ etc/periodic/daily/111.clean-squirrelmail @dirrm %%SQUIRRELDIR%%/functions/encode @dirrm %%SQUIRRELDIR%%/functions/decode @dirrm %%SQUIRRELDIR%%/functions +@owner %%SMUSER%% +@group %%SMGROUP%% +@mode 0750 @dirrm %%SQUIRRELDIR%%/data +@mode +@group +@owner @dirrmtry %%SQUIRRELDIR%%/config @dirrm %%SQUIRRELDIR%%/class/mime @dirrm %%SQUIRRELDIR%%/class/helper @dirrm %%SQUIRRELDIR%%/class/deliver @dirrm %%SQUIRRELDIR%%/class +@owner %%SMUSER%% +@group %%SMGROUP%% +@mode 0730 @dirrmtry %%SQUIRRELDIR%%/attach +@mode +@group +@owner @dirrmtry %%SQUIRRELDIR%% @dirrmtry etc/periodic/daily @dirrmtry etc/periodic |