From nobody Sat Nov 18 12:30:06 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SXY4v1cZjz513jv; Sat, 18 Nov 2023 12:30:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SXY4v0d3wz4XM0; Sat, 18 Nov 2023 12:30:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700310607; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=wVUlJpNF5pyCvq2JpkJ95+4PVj3y455YlthL1qiXzWA=; b=NnroCQB2Z/w67+lh01kvANEQizAPD59Wg+wrKs+PjpTxMwwyQs8mkrCV82KyW3xl+0HXwk p+jmea18YLjL1zJ4Nx/EB+cE8wQhtZPVcHvdEj7y+JBvVUd2OPJlcQZ6aNYBvlV5yOeWeg xGlkg4LJNEBjCtO+LPHD6kvxB1nTdISGISaBz3ohpsDSrqvZZNJY2//IVths8BUczROaQS oQFrw9QkjqfaZ/t5oYN9yLKWPH6Cs+PCa3SYOoQXbxPRk8Fmyf/UyBXIf/u7Mocp5idGYH 3PmI/YcV2xgs433aw/xIca2tUd+DeFS0kv1092g917N+JM8Unm9YiMAVtO8Xog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700310607; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=wVUlJpNF5pyCvq2JpkJ95+4PVj3y455YlthL1qiXzWA=; b=xJgAwvEpBYL+CmiFQa4uZT5s+BngdM17G9rNkAnJT4KgXuatKm9fkwtJ9pwFS1aPitOLTV hqqzYxcvuJHfckZlf+bLOcV2wlLhltcEXh6MDXrLkrH9aXJE+aFL8e99QBsRWzeDj87mnK wvPefmiXyS/hTJPxnlKq38I+EdkTuDOvs6bf5ONgGErMRJIPotyEni4vcNeS2yWjlxtTMk 6t1CXg8eTMpxb/kKy6QMYIaU4utA3UIHjR3MGMdTaxEtaiK4V5gdu9LTjGpJZDRDvuDlcn 8B+nQ1Imq4U2bmcSqzeXJWcuYUlPASgrLY1PfONX+07r87ZaASwofbUW2tT2Vw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1700310607; a=rsa-sha256; cv=none; b=SuD/bUGNsGD+jvH8ZeQqXjlBC4XE4x5udRnrdEIJxsq6i5uSVfqdj4U5hbF7oxYE62glnl 1qipupnA9L3Z0UtfL+FZykSzpwQg6xBIHrydJiYHgn7vTKfcRr7sipbsA5ggj+ggKINfwd K9I39DnaC2qSfZOga/f7q7fKsP9E7FbeV1FEXK7+uN5CCUumwPvn0ebkcWWH4LD890bClk SeHpICj8C4L/JiJEiqiIzYaSjla+XfXw4nXeGJJrBheQNtYpbsyKy7zVmk93GwFGPCLV/K TU9hmqtIix8043kVHiIeSrQWjf2jdU0N70oqpwhRtwZH6miFulTn8YXwdSOkHQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SXY4t6Z3HzC4Y; Sat, 18 Nov 2023 12:30:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3AICU6fb019320; Sat, 18 Nov 2023 12:30:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3AICU6g5019316; Sat, 18 Nov 2023 12:30:06 GMT (envelope-from git) Date: Sat, 18 Nov 2023 12:30:06 GMT Message-Id: <202311181230.3AICU6g5019316@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Muhammad Moinur Rahman Subject: git: 90497784a727 - main - www/yanopaste: Avoid @exec/@unexec List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bofh X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 90497784a727183c64bb73e9dd32193974ec1620 Auto-Submitted: auto-generated The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=90497784a727183c64bb73e9dd32193974ec1620 commit 90497784a727183c64bb73e9dd32193974ec1620 Author: Muhammad Moinur Rahman AuthorDate: 2023-11-18 11:57:01 +0000 Commit: Muhammad Moinur Rahman 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