git: 8a423b708310 - main - deskutils/myitcrm: Mark DEPRECATED

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Tue, 09 Aug 2022 16:54:29 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8a423b70831006666bab5f760c046c2c3b6058fc

commit 8a423b70831006666bab5f760c046c2c3b6058fc
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2022-08-09 16:51:58 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2022-08-09 16:54:22 +0000

    deskutils/myitcrm: Mark DEPRECATED
    
    - Upstream abandoned project. Last update was on 2012-02-15
    - Set EXPIRATION_DATE to 2022-09-30
    - Domain is parked
    - Pet portclippy/portfmt
    - Use OPTIONSNG
    - Mark NO_ARCH
---
 deskutils/myitcrm/Makefile | 46 +++++++++++++++++++++++++++-------------------
 1 file changed, 27 insertions(+), 19 deletions(-)

diff --git a/deskutils/myitcrm/Makefile b/deskutils/myitcrm/Makefile
index ce4aaba97e37..8afd6fd0574c 100644
--- a/deskutils/myitcrm/Makefile
+++ b/deskutils/myitcrm/Makefile
@@ -10,34 +10,39 @@ COMMENT=	CRM project designed for Computer Servicing and Repairs
 
 LICENSE=	GPLv3
 
+DEPRECATED=	Abandoned project as last update was on 2012-01-15
+EXPIRATION_DATE=	2022-09-30
+
 USES=		dos2unix zip
 USE_PHP=	mysqli session xml
+
+PATCH_STRIP=	-p1
+NO_ARCH=	yes
 NO_BUILD=	yes
+SUB_FILES=	pkg-message
+
 WRKSRC=		${WRKDIR}/MyITCRM-${PORTVERSION}
 
-PLIST_SUB=	WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}"
-SUB_FILES=	pkg-message
-PATCH_STRIP=	-p1
-WRITEABLE=	conf.php.sample log/access.log cache
+PLIST_SUB=	WWWGRP="${WWWGRP}" \
+		WWWOWN="${WWWOWN}"
+PORTDOCS=	README.textile changelog.txt
 PORTEXAMPLES=	htaccess.txt
-PORTDOCS=	changelog.txt README.textile
 
-OPTIONS_DEFINE=	APACHE PHPMOD LIGHTTPD NGINX DOCS EXAMPLES
+OPTIONS_DEFINE=		APACHE DOCS EXAMPLES LIGHTTPD NGINX PHPMOD
 OPTIONS_DEFAULT=	APACHE
-PHPMOD_DESC=	Use PHP module for Apache
+
 NGINX_DESC=	Use Nginx
+PHPMOD_DESC=	Use PHP module for Apache
 
 APACHE_USES=		apache:run,2.2+
 LIGHTTPD_RUN_DEPENDS=	lighttpd:www/lighttpd
 NGINX_RUN_DEPENDS=	nginx:www/nginx
+PHPMOD_USES=		php:mod
+PHPMOD_USES_OFF=	php:cgi
 
-.include <bsd.port.options.mk>
+WRITEABLE=	conf.php.sample log/access.log cache
 
-.if ${PORT_OPTIONS:MPHPMOD}
-USES+=	php:mod
-.else
-USES+=	php:cgi
-.endif
+.include <bsd.port.options.mk>
 
 # Set files to ignore.
 .for file in ${PORTEXAMPLES} ${PORTDOCS} LICENSE.txt
@@ -62,17 +67,20 @@ do-install:
 .for ent in ${WRITEABLE}
 	@${CHMOD} u+w ${STAGEDIR}${WWWDIR}/${ent}
 .endfor
+.if defined(MAINTAINER_MODE)
+	@${MAKE} -C ${.CURDIR} rm-install
+.endif
+
+do-install-EXAMPLES-on:
 	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
 .for ex in ${PORTEXAMPLES}
-	@${INSTALL_DATA} ${WRKSRC}/${ex} ${STAGEDIR}${EXAMPLESDIR}
+	${INSTALL_DATA} ${WRKSRC}/${ex} ${STAGEDIR}${EXAMPLESDIR}
 .endfor
+
+do-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for doc in ${PORTDOCS}
-	@${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
 .endfor
 
-.if defined(MAINTAINER_MODE)
-	@${MAKE} -C ${.CURDIR} rm-install
-.endif
-
 .include <bsd.port.mk>