mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
Have dns/py-ldns only install the Python bits.
PR: ports/179812 Submitted by: mat Approved by: maintainer
This commit is contained in:
parent
f1386d0912
commit
47d55bc233
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=322766
5 changed files with 51 additions and 27 deletions
15
UPDATING
15
UPDATING
|
@ -5,6 +5,21 @@ they are unavoidable.
|
|||
You should get into the habit of checking this file for changes each time
|
||||
you update your ports collection, before attempting any port upgrades.
|
||||
|
||||
20130711:
|
||||
AFFECTS: users of dns/py-ldns
|
||||
AUTHOR: mat@FreeBSD.org
|
||||
|
||||
The dns/py-ldns port now only installs the Python bits, and depends on
|
||||
dns/ldns. Because of that, you can't just do a regular upgrade, it'd install
|
||||
dns/ldns overwritting existing files and removing them when removing the old
|
||||
version of dns/py-ldns.
|
||||
|
||||
# pkg_delete -f py-ldns-\*
|
||||
# cd /usr/ports/dns/py-ldns && make clean && make install clean
|
||||
or
|
||||
# pkg delete -fg py-ldns-\*
|
||||
# pkg install -f dns/py-ldns
|
||||
|
||||
20130707:
|
||||
AFFECTS: users of www/ajaxplorer
|
||||
AUTHOR: madpilot@FreeBSD.org
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
PORTNAME= ldns
|
||||
PORTVERSION= 1.6.16
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= dns
|
||||
MASTER_SITES= http://www.nlnetlabs.nl/downloads/ldns/ \
|
||||
CRITICAL
|
||||
|
@ -17,23 +18,32 @@ USE_GMAKE= yes
|
|||
USE_OPENSSL= yes
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
OPTIONS_DEFINE= DOXYGEN EXAMPLES DRILL GOST PYLDNS
|
||||
.if !defined(BUILD_PYLDNS)
|
||||
OPTIONS_DEFINE= DOXYGEN EXAMPLES DRILL
|
||||
OPTIONS_DEFAULT= EXAMPLES DRILL
|
||||
|
||||
DRILL_DESC= With drill program
|
||||
.endif
|
||||
|
||||
OPTIONS_DEFINE+= GOST
|
||||
|
||||
GOST_DESC= GOST signatures enabled, requires openssl >= 1.0.0
|
||||
PYLDNS_DESC= ${PYTHON_DESC}
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MPYLDNS}
|
||||
.if defined(BUILD_PYLDNS)
|
||||
USE_PYTHON= yes
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
CONFLICTS= ldns-[0-9]*
|
||||
.else
|
||||
CONFLICTS= py*-ldns-[0-9]*
|
||||
.endif
|
||||
ALL_TARGET= pyldns
|
||||
INSTALL_TARGET= install-pyldns
|
||||
|
||||
CONFIGURE_ARGS+=--with-pyldns
|
||||
LIB_DEPENDS+= ldns:${PORTSDIR}/dns/ldns
|
||||
BUILD_DEPENDS+= ${LOCALBASE}/bin/swig:${PORTSDIR}/devel/swig13
|
||||
|
||||
post-patch:
|
||||
@${SED} -i '' -e 's=-I./include/ldns=-I${LOCALBASE}/include/ldns=' ${WRKSRC}/Makefile.in
|
||||
.else
|
||||
ALL_TARGET= all
|
||||
INSTALL_TARGET= install-lib install-h install-config
|
||||
|
||||
|
@ -233,13 +243,6 @@ MAN3= ldns_bget_token.3 ldns_bgetc.3 ldns_bskipcs.3 ldns_buffer.3 \
|
|||
MAN1+= ldns-config.1
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MGOST}
|
||||
BUILD_DEPENDS+= openssl>=1.0:${PORTSDIR}/security/openssl
|
||||
.else
|
||||
NO_GOST= --disable-gost
|
||||
CONFIGURE_ARGS+=${NO_GOST}
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MDRILL}
|
||||
PLIST_SUB+= DRILLPROG=""
|
||||
MAN1+= drill.1
|
||||
|
@ -262,15 +265,17 @@ MAN1+= ldns-chaos.1 ldns-compare-zones.1 ldns-dpa.1 \
|
|||
PLIST_SUB+= EXAMPLES="@comment "
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MPYLDNS}
|
||||
CONFIGURE_ARGS+=--with-pyldns
|
||||
BUILD_DEPENDS+= ${LOCALBASE}/bin/swig:${PORTSDIR}/devel/swig13
|
||||
INSTALL_TARGET+=install-pyldns
|
||||
PLIST_SUB+= PYLDNS=""
|
||||
.endif # BUILD_PYLDNS
|
||||
|
||||
.if ${PORT_OPTIONS:MGOST}
|
||||
BUILD_DEPENDS+= openssl>=1.0:${PORTSDIR}/security/openssl
|
||||
.else
|
||||
PLIST_SUB+= PYLDNS="@comment "
|
||||
NO_GOST= --disable-gost
|
||||
CONFIGURE_ARGS+=${NO_GOST}
|
||||
.endif
|
||||
|
||||
.if !defined(BUILD_PYLDNS)
|
||||
|
||||
post-configure:
|
||||
.if ${PORT_OPTIONS:MEXAMPLES}
|
||||
@(cd ${WRKSRC}/examples; ./configure --prefix=${PREFIX} \
|
||||
|
@ -299,4 +304,6 @@ post-install:
|
|||
@(cd ${WRKSRC}/drill; ${GMAKE} install)
|
||||
.endif
|
||||
|
||||
.endif # BUILD_PYLDNS
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -60,10 +60,4 @@ lib/libldns.a
|
|||
lib/libldns.la
|
||||
lib/libldns.so
|
||||
lib/libldns.so.1
|
||||
%%PYLDNS%%%%PYTHON_SITELIBDIR%%/_ldns.so.1
|
||||
%%PYLDNS%%%%PYTHON_SITELIBDIR%%/ldns.py
|
||||
%%PYLDNS%%%%PYTHON_SITELIBDIR%%/_ldns.so
|
||||
%%PYLDNS%%%%PYTHON_SITELIBDIR%%/_ldns.la
|
||||
%%PYLDNS%%%%PYTHON_SITELIBDIR%%/_ldns.a
|
||||
%%PYLDNS%%@dirrm %%PYTHON_SITELIBDIR%%/ldns
|
||||
@dirrm include/ldns
|
||||
|
|
|
@ -3,6 +3,8 @@
|
|||
|
||||
MASTERDIR= ${.CURDIR}/../../dns/ldns
|
||||
|
||||
OPTIONS_SET= PYLDNS
|
||||
BUILD_PYLDNS=yes
|
||||
|
||||
PLIST= ${.CURDIR}/pkg-plist
|
||||
|
||||
.include "${MASTERDIR}/Makefile"
|
||||
|
|
6
dns/py-ldns/pkg-plist
Normal file
6
dns/py-ldns/pkg-plist
Normal file
|
@ -0,0 +1,6 @@
|
|||
%%PYTHON_SITELIBDIR%%/_ldns.so.1
|
||||
%%PYTHON_SITELIBDIR%%/ldns.py
|
||||
%%PYTHON_SITELIBDIR%%/_ldns.so
|
||||
%%PYTHON_SITELIBDIR%%/_ldns.la
|
||||
%%PYTHON_SITELIBDIR%%/_ldns.a
|
||||
@dirrm %%PYTHON_SITELIBDIR%%/ldns
|
Loading…
Add table
Reference in a new issue