summaryrefslogtreecommitdiff
path: root/net/inadyn/Makefile
blob: b72895a055d78f3e96d9f27e0cd124ae2a24dc1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# $NetBSD: Makefile,v 1.14 2017/02/08 23:48:45 dmcmahill Exp $

DISTNAME=	inadyn-1.99.15
CATEGORIES=	net
MASTER_SITES=	${MASTER_SITE_GITHUB:=troglobit/}
EXTRACT_SUFX=	.tar.xz

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://troglobit.com/inadyn.html
COMMENT=	Dynamic DNS client
LICENSE=	gnu-gpl-v2

GITHUB_RELEASE=	1.99.15
GITHUB_TYPE=	release

USE_TOOLS+=	autoconf automake gmake
RCD_SCRIPTS=	inadyn

GNU_CONFIGURE=	yes
CONFIGURE_ARGS+=--enable-openssl --disable-gitcheck

LIBS.SunOS=	-lsocket -lnsl

INSTALLATION_DIRS=	sbin ${PKGMANDIR}/man5 ${PKGMANDIR}/man8
INSTALLATION_DIRS+=	share/doc/inadyn

OWN_DIRS+=		${VARBASE}/db/inadyn ${VARBASE}/run

BUILD_DEFS+=		VARBASE

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

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

.include "../../mk/bsd.prefs.mk"

PKG_OPTIONS_VAR=	PKG_OPTIONS.inadyn
PKG_SUPPORTED_OPTIONS=  static

.include "../../mk/bsd.options.mk"

##
## Static link
##
.if !empty(PKG_OPTIONS:Mstatic)
LDFLAGS+=	-static
.endif

pre-configure:
	cd ${WRKSRC} && autoreconf -i

.include "../../security/openssl/buildlink3.mk"
.include "../../devel/libite/buildlink3.mk"
.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"