ef954a8a5f
- There isn't anything that would change functionality, but it is a major version update, and it needs to line up with the rest of the stack so people aren't confused. PR: 211633 Submitted by: Ultima1252@gmail.com (maintainer)
71 lines
2.1 KiB
Makefile
71 lines
2.1 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= ccnet
|
|
PORTVERSION= 6.0.0
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSIONSUFFIX= -server
|
|
CATEGORIES= net-mgmt devel
|
|
|
|
MAINTAINER= ultima1252@gmail.com
|
|
COMMENT= Framework for writing networked applications
|
|
|
|
LICENSE= GPLv3
|
|
LICENSE_FILE= ${WRKSRC}/LICENCE.txt
|
|
|
|
BUILD_DEPENDS= valac:lang/vala
|
|
LIB_DEPENDS= libsearpc.so:devel/libsearpc \
|
|
libglib-2.0.so:devel/glib20 \
|
|
libsqlite3.so:databases/sqlite3 \
|
|
libzdb.so:databases/libzdb \
|
|
libuuid.so:misc/e2fsprogs-libuuid \
|
|
libevent.so:devel/libevent2 \
|
|
libjansson.so:devel/jansson \
|
|
libldap.so:net/openldap24-client
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= haiwen
|
|
|
|
USES= autoreconf gettext libtool localbase pathfix pkgconfig \
|
|
python:-2.7 shebangfix ssl
|
|
USE_LDCONFIG= yes
|
|
SHEBANG_FILES= tools/*.py
|
|
PATHFIX_MAKEFILEIN= Makefile.am
|
|
|
|
CONFIGURE_ENV= SSL_CFLAGS="${OPENSSLINC}" SSL_LIBS="-L${OPENSSLLIB} -lssl -lcrypto"
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --enable-server --enable-ldap
|
|
INSTALL_TARGET= install-strip
|
|
|
|
HAIWENDIR= www/haiwen
|
|
SEAFILE_SERVER= ${HAIWENDIR}/seafile-server
|
|
SEABIN= ${SEAFILE_SERVER}/seafile/bin
|
|
SEALIB= ${SEAFILE_SERVER}/seafile/lib
|
|
|
|
USERS= seafile
|
|
GROUPS= ${USERS}
|
|
|
|
PLIST_SUB= USERS=${USERS} \
|
|
GROUPS=${GROUPS} \
|
|
SEAFILE_SERVER=${SEAFILE_SERVER} \
|
|
HAIWENDIR=${HAIWENDIR}
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000000
|
|
WITH_OPENSSL_PORT= yes
|
|
.endif
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/${SEABIN} ${STAGEDIR}${PREFIX}/${SEALIB}
|
|
${INSTALL_PROGRAM} ${STAGEDIR}${PREFIX}/bin/ccnet-init ${STAGEDIR}${PREFIX}/${SEABIN}
|
|
${INSTALL_PROGRAM} ${STAGEDIR}${PREFIX}/bin/ccnet-server ${STAGEDIR}${PREFIX}/${SEABIN}
|
|
${INSTALL_PROGRAM} ${STAGEDIR}${PREFIX}/bin/ccnet-servtool ${STAGEDIR}${PREFIX}/${SEABIN}
|
|
${RM} ${STAGEDIR}${PREFIX}/bin/ccnet-init \
|
|
${STAGEDIR}${PREFIX}/bin/ccnet-server \
|
|
${STAGEDIR}${PREFIX}/bin/ccnet-servtool
|
|
(cd ${STAGEDIR}${PREFIX}/lib && \
|
|
${COPYTREE_SHARE} ${PYTHON_VERSION} ${STAGEDIR}${PREFIX}/${SEALIB})
|
|
@${RM} -rf ${STAGEDIR}${PREFIX}/lib/${PYTHON_VERSION}
|
|
${LN} -s ${PREFIX}/${SEABIN}/ccnet-server ${STAGEDIR}${PREFIX}/bin/
|
|
|
|
.include <bsd.port.mk>
|