summaryrefslogtreecommitdiff
path: root/net/inadyn/Makefile
diff options
context:
space:
mode:
authorsnj <snj@pkgsrc.org>2015-04-04 07:59:33 +0000
committersnj <snj@pkgsrc.org>2015-04-04 07:59:33 +0000
commitf3c4e93f9d7903561653eb06a452b3f17accc6d7 (patch)
tree012722d3858300531a25efa4b6f61a48fc2d631b /net/inadyn/Makefile
parent5b5cc55561f7341a03c74c692192106844996e43 (diff)
downloadpkgsrc-f3c4e93f9d7903561653eb06a452b3f17accc6d7.tar.gz
Update inadyn to 1.99.13.
In the last five years, the following has happened to inadyn: - Binary moved from bin to sbin - Added support for more DDNS providers - Added SSL support - Gained other minor features - Fixed bugs
Diffstat (limited to 'net/inadyn/Makefile')
-rw-r--r--net/inadyn/Makefile49
1 files changed, 26 insertions, 23 deletions
diff --git a/net/inadyn/Makefile b/net/inadyn/Makefile
index a6f2519dbfc..8529d4a9e6c 100644
--- a/net/inadyn/Makefile
+++ b/net/inadyn/Makefile
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.8 2015/03/07 21:14:32 tnn Exp $
+# $NetBSD: Makefile,v 1.9 2015/04/04 07:59:33 snj Exp $
-DISTNAME= inadyn-1.96.2
-PKGREVISION= 1
+DISTNAME= inadyn-1.99.13
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_GITHUB:=troglobit/}
EXTRACT_SUFX= .zip
@@ -11,32 +10,36 @@ HOMEPAGE= http://troglobit.com/inadyn.html
COMMENT= Dynamic DNS client
LICENSE= gnu-gpl-v2
-USE_TOOLS+= gmake
+USE_TOOLS+= autoconf gmake
RCD_SCRIPTS= inadyn
-RCD_SCRIPT_WRK.inadyn= ${WRKDIR}/inadyn.sh
+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= --enable-openssl
LIBS.SunOS= -lsocket -lnsl
-MAKE_ENV+= TARGET_ARCH=pkgsrc
-MAKE_ENV+= LIBS=${LIBS:Q}
-WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
-MAKE_FILE= makefile
+INSTALLATION_DIRS= sbin ${PKGMANDIR}/man5 ${PKGMANDIR}/man8
+INSTALLATION_DIRS+= share/doc/inadyn
+
+OWN_DIRS+= ${VARBASE}/db/inadyn ${VARBASE}/run
+
+BUILD_DEFS+= VARBASE
-INSTALLATION_DIRS= bin ${PKGMANDIR}/man5 ${PKGMANDIR}/man8
+SUBST_CLASSES+= etc
+SUBST_SED.etc= -e "s|/etc|${PKG_SYSCONFDIR}|g"
+SUBST_FILES.etc= man/inadyn.conf.5 man/inadyn.8 include/ddns.h
+SUBST_MESSAGE.etc= Fixing path to configuration file
+SUBST_STAGE.etc= pre-configure
-pre-patch:
- set -e && cd ${WRKSRC} && \
- for f in man/inadyn.conf.5 man/inadyn.8 src/dyndns.h ; do \
- ${SED} -e "s|/etc|${PKG_SYSCONFDIR}|g" \
- $${f} > $${f}.orig; \
- ${CP} -f $${f}.orig $${f}; \
- done
+SUBST_CLASSES+= var
+SUBST_SED.var= -e "s|/var|${VARBASE}|"
+SUBST_FILES.var= man/inadyn.conf.5 man/inadyn.8 include/ddns.h
+SUBST_MESSAGE.var= Adjusting path to VARBASE
+SUBST_STAGE.var= pre-configure
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/bin/pkgsrc/inadyn ${DESTDIR}${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/man/inadyn.conf.5 \
- ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5
- ${INSTALL_MAN} ${WRKSRC}/man/inadyn.8 \
- ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
+pre-configure:
+ cd ${WRKSRC} && autoconf
+.include "../../security/openssl/buildlink3.mk"
+.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"