File:  [cvs.NetBSD.org] / pkgsrc / net / inadyn / Makefile
Revision 1.3: download - view: text, annotated - select for diffs
Tue Oct 23 17:18:28 2012 UTC (12 years, 1 month ago) by asau
Branches: MAIN
CVS tags: pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4, HEAD
Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.

# $NetBSD: Makefile,v 1.3 2012/10/23 17:18:28 asau Exp $

DISTNAME=	inadyn.v1.96.2
PKGNAME=	${DISTNAME:C:.v:-:} # inadyn-1.96.2
PKGREVISION=	1
CATEGORIES=	net
MASTER_SITES=	http://www.inatech.eu/inadyn/
EXTRACT_SUFX=	.zip

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.inatech.eu/inadyn/
COMMENT=	Dynamic DNS client
LICENSE=	gnu-gpl-v2

USE_TOOLS+=	gmake
RCD_SCRIPTS=	inadyn
RCD_SCRIPT_WRK.inadyn=	${WRKDIR}/inadyn.sh

LIBS.SunOS=	-lsocket -lnsl
MAKE_ENV+=	TARGET_ARCH=pkgsrc

WRKSRC=		${WRKDIR}/inadyn
MAKE_FILE=	makefile

INSTALLATION_DIRS=	bin ${PKGMANDIR}/man5 ${PKGMANDIR}/man8

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

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

.include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>