git: 90497784a727 - main - www/yanopaste: Avoid @exec/@unexec
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 18 Nov 2023 12:30:06 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=90497784a727183c64bb73e9dd32193974ec1620
commit 90497784a727183c64bb73e9dd32193974ec1620
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-11-18 11:57:01 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-11-18 12:29:52 +0000
www/yanopaste: Avoid @exec/@unexec
- Mark DEPRECATED as last upstream release was in 2011
- Set EXPIRATION_DATE to 2023-12-18
---
www/yanopaste/Makefile | 10 +++++++---
www/yanopaste/pkg-plist | 4 ++--
2 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/www/yanopaste/Makefile b/www/yanopaste/Makefile
index b05448825a73..04cb28aaf790 100644
--- a/www/yanopaste/Makefile
+++ b/www/yanopaste/Makefile
@@ -8,9 +8,13 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Yet Another Nopaste
WWW= https://sourceforge.net/projects/yanopaste/
-NO_BUILD= yes
+DEPRECATED= Last upstream release was in 2011
+EXPIRATION_DATE= 2023-12-18
+
USES+= php
USE_PHP= xsl session xmlwriter xmlreader
+
+NO_BUILD= yes
SUB_FILES= pkg-message
post-patch:
@@ -23,8 +27,8 @@ do-install:
create-plist:
@${FIND} -s ${WRKSRC}/${file} -not -type d \
| ${SED} -e 's,^${WRKSRC},%%WWWDIR%%,' > ${PLIST}
- @${ECHO_CMD} '@exec touch %D/%%WWWDIR%%/config.php;chown ${WWWOWN} %D/%%WWWDIR%%/config.php' >> ${PLIST}
- @${ECHO_CMD} '@unexec if [ ! -s %D/%%WWWDIR%%/config.php ];then rm -f %D/%%WWWDIR%%/config.php;fi' >> ${PLIST}
+ @${ECHO_CMD} '@postexec touch %D/%%WWWDIR%%/config.php;chown ${WWWOWN} %D/%%WWWDIR%%/config.php' >> ${PLIST}
+ @${ECHO_CMD} '@postunexec if [ ! -s %D/%%WWWDIR%%/config.php ];then rm -f %D/%%WWWDIR%%/config.php;fi' >> ${PLIST}
@${FIND} -ds ${WRKSRC}/${file} -type d -empty \
| ${SED} -e 's,^${WRKSRC},@dir %%WWWDIR%%,' >> ${PLIST}
diff --git a/www/yanopaste/pkg-plist b/www/yanopaste/pkg-plist
index ce7656f5d06e..a35492571ece 100644
--- a/www/yanopaste/pkg-plist
+++ b/www/yanopaste/pkg-plist
@@ -149,5 +149,5 @@
%%WWWDIR%%/index.php
%%WWWDIR%%/screen.css
%%WWWDIR%%/upgrade.php
-@exec touch %D/%%WWWDIR%%/config.php;chown www %D/%%WWWDIR%%/config.php
-@unexec if [ ! -s %D/%%WWWDIR%%/config.php ];then rm -f %D/%%WWWDIR%%/config.php;fi
+@postexec touch %D/%%WWWDIR%%/config.php;chown www %D/%%WWWDIR%%/config.php
+@postunexec if [ ! -s %D/%%WWWDIR%%/config.php ];then rm -f %D/%%WWWDIR%%/config.php;fi