# New ports collection makefile for: P4DB # Date created: 2 September 2001 # Whom: Akinori MUSHA aka knu # # $FreeBSD$ # PORTNAME= p4db PORTVERSION= 2.01 CATEGORIES= devel www MASTER_SITES= http://freebsd.unixfreunde.de/sources/ \ ${MASTER_SITE_LOCAL} MASTER_SITE_SUBDIR= miwi DISTNAME= ${PORTNAME:U}_${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Web/Perforce Browser RUN_DEPENDS= p4:${PORTSDIR}/devel/perforce USE_PERL5= yes NO_BUILD= yes NO_WRKSUBDIR= yes PATCH_WRKSRC= ${WRKSRC}/${PORTNAME} SUB_FILES= pkg-message PKGMESSAGE= ${WRKDIR}/pkg-message FQDN!= hostname P4DB_HOME= ${PREFIX}/perforce/${PORTNAME} # These variables are all configurable. PERFORCE_USER?= p4admin PERFORCE_GROUP?= p4admin PERFORCE_HOME?= ${LOCALBASE}/perforce PERFORCE_PORT?= 1666 post-extract: ${MKDIR} ${WRKSRC}/${PORTNAME}/www ${TAR} -xf ${WRKSRC}/cgi_files.tar -C ${WRKSRC}/${PORTNAME}/www/ ${RM} -f ${WRKSRC}/${PORTNAME}/www/Makefile ${WRKSRC}/${PORTNAME}/www/p4jdb/*.java ${CP} -p ${WRKSRC}/README.html ${WRKSRC}/${PORTNAME}/www/ ${CP} ${WRKSRC}/P4DB.conf.txt ${WRKSRC}/${PORTNAME}/P4DB.conf.sample cd ${WRKSRC}; for f in P4DB.shortcuts*.txt; do \ ${CP} $${f} ${PORTNAME}/$${f}.sample; \ done post-patch: ${PERL} -pi \ -e 's,!!PREFIX!!,${PREFIX},g;' \ -e 's,!!PERFORCE_USER!!,${PERFORCE_USER},g;' \ -e 's,!!PERFORCE_GROUP!!,${PERFORCE_GROUP},g;' \ -e 's,!!PERFORCE_PORT!!,${PERFORCE_PORT},g;' \ -e 's,!!FQDN!!,${FQDN},g;' \ ${WRKSRC}/${PORTNAME}/P4DB.conf.sample ${FIND} ${WRKSRC}/${PORTNAME} -name '*.orig' -delete do-install: ${MKDIR} ${P4DB_HOME}/www ${CP} -Rp ${WRKSRC}/${PORTNAME}/* ${P4DB_HOME}/ ${CHOWN} -R ${PERFORCE_USER}:${PERFORCE_GROUP} ${P4DB_HOME} .for f in P4DB.conf P4DB.shortcuts.txt P4DB.shortcuts2.txt if [ ! -f ${P4DB_HOME}/${f} ]; then \ ${CP} -p ${P4DB_HOME}/${f}.sample ${P4DB_HOME}/${f}; \ fi .endfor .if !defined(NOPORTDOCS) ${MKDIR} ${P4DB_HOME}/doc cd ${WRKSRC}; ${INSTALL_DATA} P4CGI.html README.html ${P4DB_HOME}/doc/ .endif post-install: @${CAT} ${PKGMESSAGE} .include > Approved by: mentors (implicit)
Approved by:	mentors (implicit)
Remove superfluous linefeeds and fix some other minor whitespace bugs. 2018-01-11T16:53:44+00:00 danfe danfe@FreeBSD.org 2018-01-11T16:53:44+00:00 6ed13fce8ae198cfc7c4e72fd91efc013cec64d5

- Remove inclusion of bsd.default-versions.mk from ftp/curl/Makefile so 2017-02-05T21:20:24+00:00 tijl tijl@FreeBSD.org 2017-02-05T21:20:24+00:00 766087b5ea83ecaaaffe737d90df248e9f40ef0d bsd.default-versions.mk can rely on ARCH being defined. - In bsd.port.mk move inclusion of bsd.default-versions.mk from the pre-makefile section to the options section so the variables can be used earlier. Also put the bit of code sitting between the options section and the pre-makefile section into the options section. - Remove last few cases where ports set WITH_OPENSSL_PORT. This variable is handled in bsd.default-versions.mk and some ports were setting it after including bsd.port.options.mk. After FreeBSD 9 EoL all but a few ports, and then only when setting non-default options, work without setting that variable. PR: 215996 Exp-run by: antoine Approved by: portmgr (antoine)
  bsd.default-versions.mk can rely on ARCH being defined.
- In bsd.port.mk move inclusion of bsd.default-versions.mk from the
  pre-makefile section to the options section so the variables can be used
  earlier.  Also put the bit of code sitting between the options section and
  the pre-makefile section into the options section.
- Remove last few cases where ports set WITH_OPENSSL_PORT.  This variable is
  handled in bsd.default-versions.mk and some ports were setting it after
  including bsd.port.options.mk.  After FreeBSD 9 EoL all but a few ports,
  and then only when setting non-default options, work without setting that
  variable.

PR:		215996
Exp-run by:	antoine
Approved by:	portmgr (antoine)