- Fix dependency list
- Convert to USERS/GROUPS macros - Add license - Bump portrevision PR: ports/149740 Submitted by: Sergei Vyshenski <svysh _at_ pn.sinp.msu.ru> (maintainer) Approved by: tabthorpe (mentor)
This commit is contained in:
parent
53efcf8c3d
commit
ee40034e80
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=259500
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= openxpki
|
||||
PORTVERSION= 0.9.1389
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= security perl5
|
||||
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/0.9.1300
|
||||
PKGNAMEPREFIX= p5-
|
||||
@ -287,6 +287,11 @@ USE_GMAKE= yes
|
||||
USE_OPENSSL= yes
|
||||
PERL_CONFIGURE= 5.8.6+
|
||||
|
||||
USERS= openxpki
|
||||
GROUPS= openxpki
|
||||
|
||||
LICENSE= ART20
|
||||
|
||||
OPTIONS= DEVELOPER "Install development tools for OpenXPKI?" off \
|
||||
GRAPHVIZ "With graphical visualization of workflows?" off
|
||||
# If DEVELOPER is checked, then docbook, Java and Xorg libraries are installed.
|
||||
@ -313,16 +318,14 @@ WITH_OPENSSL_BASE= yes
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if defined(WITH_DEVELOPER)
|
||||
RUN_DEPENDS+= fop:${PORTSDIR}/textproc/fop \
|
||||
xsltproc:${PORTSDIR}/textproc/libxslt \
|
||||
RUN_DEPENDS+= ${LOCALBASE}/bin/fop:${PORTSDIR}/textproc/fop \
|
||||
${LOCALBASE}/bin/xsltproc:${PORTSDIR}/textproc/libxslt \
|
||||
${LOCALBASE}/share/xsl/docbook/html/chunk.xsl:${PORTSDIR}/textproc/docbook-xsl \
|
||||
${LOCALBASE}/share/java/jai/lib/libmlib_jai.so:${PORTSDIR}/java/jai
|
||||
.endif
|
||||
.if defined(WITH_GRAPHVIZ)
|
||||
RUN_DEPENDS+= ${LOCALBASE}/bin/dot:${PORTSDIR}/graphics/graphviz
|
||||
RUN_DEPENDS+= ${LOCALBASE}/bin/dot:${PORTSDIR}/graphics/graphviz \
|
||||
${LOCALBASE}/bin/imgsize:${PORTSDIR}/graphics/p5-Image-Size
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
${SH} ${PKGINSTALL} ${PORTNAME} POST-INSTALL
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -1,41 +0,0 @@
|
||||
#! /bin/sh
|
||||
# $FreeBSD$
|
||||
|
||||
PATH=/bin:/usr/sbin
|
||||
OPENXPKIUSER=openxpki
|
||||
HOME_DIR="/nonexistent"
|
||||
SHELL="/usr/sbin/nologin"
|
||||
COMMENT="OpenXPKI Owner"
|
||||
|
||||
case $2 in
|
||||
POST-INSTALL)
|
||||
USER=${OPENXPKIUSER}
|
||||
GROUP=${USER}
|
||||
UID=777
|
||||
GID=${UID}
|
||||
|
||||
if pw group show "${GROUP}" 2>/dev/null; then
|
||||
echo "You already have a group \"${GROUP}\", so I will use it."
|
||||
else
|
||||
if pw groupadd ${GROUP} -g ${GID}; then
|
||||
echo "Added group \"${GROUP}\"."
|
||||
else
|
||||
echo "Adding group \"${GROUP}\" failed..."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if pw user show "${USER}" 2>/dev/null; then
|
||||
echo "You already have a user \"${USER}\", so I will use it."
|
||||
else
|
||||
if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \
|
||||
-d ${HOME_DIR} -c "${COMMENT}" -s ${SHELL}
|
||||
then
|
||||
echo "Added user \"${USER}\"."
|
||||
else
|
||||
echo "Adding user \"${USER}\" failed..."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
esac
|
Loading…
Reference in New Issue
Block a user