openbsd-ports/net/i2p/Makefile
ajacoutot f50fdd748e Stop using the daemon class in @newuser.
If we need to make an exception we can do it and properly document the
reason but by default we should just use the default login class.
rc.d uses daemon or the login class provided in login.conf.d so this has
no impact there.

discussed with sthen@, tb@ and robert@

praying that my grep/sed skills did not break anything and still
believing in portbump :-)
2022-11-08 11:14:43 +00:00

79 lines
1.9 KiB
Makefile

COMMENT= i2p routing protocol
GH_ACCOUNT= i2p
GH_PROJECT= i2p.i2p
GH_TAGNAME= i2p-1.8.0
DISTNAME= ${GH_TAGNAME}
REVISION= 0
CATEGORIES= net
HOMEPAGE= https://geti2p.net/en/
MAINTAINER= Dimitri Karamazov <deserter666@danwin1210.me>
# Apache-2.0 Artistic BSD CC-BY-2.5 CC-BY-3.0 CC-BY-SA-3.0
# EPLv1.0 GPLv2 GPLv3 LGPLv2.1 LGPLv3 MIT public-domain WTFPLv2
PERMIT_PACKAGE= Yes
WANTLIB += gmp
MODULES= java
MODJAVA_VER= 1.8
MODJAVA_BUILD= ant
MODJAVA_BUILD_TARGET_NAME= pkg
BUILD_DEPENDS= devel/gettext,-tools
RUN_DEPENDS= devel/gettext,-runtime \
java/tanukiwrapper
LIB_DEPENDS= devel/gmp
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
PKG_ARGS+= -Dx86=1
.else
PKG_ARGS+= -Dx86=0
.endif
.if ${MACHINE_ARCH} == "i386"
BITS=32
.else
BITS=64
.endif
DB_DIR= ${LOCALSTATEDIR}/i2p
SUBST_VARS= DB_DIR JAVA_HOME
MAKE_ENV= CC=${CC} BITS=${BITS} MACHINE_ARCH=${MACHINE_ARCH}
# test requires addition dependencies (atleast: junit, hamcrest, jmockfit)
NO_TEST= Yes
post-patch:
${SUBST_CMD} ${WRKSRC}/installer/resources/wrapper.config
${SUBST_CMD} ${WRKSRC}/installer/resources/i2prouter
${SUBST_CMD} ${WRKSRC}/installer/resources/eepget
post-build:
cd ${WRKSRC}/core/c && ${MAKE_ENV} ${WRKSRC}/core/c/build.sh
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/i2p
${INSTALL_DATA} ${WRKSRC}/pkg-temp/*.{txt,config} \
${PREFIX}/share/i2p
${INSTALL_DATA} ${WRKSRC}/pkg-temp/man/*{get,ter}.1 \
${PREFIX}/man/man1
${INSTALL_SCRIPT} ${WRKSRC}/pkg-temp/{eepget,i2prouter} \
${PREFIX}/bin
.for dir in lib webapps docs eepsite geoip certificates
cp -Rp ${WRKSRC}/pkg-temp/${dir} ${PREFIX}/share/i2p
.endfor
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64"
cp ${WRKSRC}/core/c/t/freenet/support/CPUInformation/libjcpuid*.so \
${PREFIX}/share/i2p/lib/libjcpuid.so
.endif
cp ${WRKSRC}/core/c/t/libjbigi.so ${PREFIX}/share/i2p/lib
rm -rf ${PREFIX}/share/i2p/lib/{wrapper,wrapper.jar}
.include <bsd.port.mk>