Convert to the bsd.pkg.install.mk framework:
- Install configuration file in the examples directory. - Copy configuration file in PKG_SYSCONFDIR. - Honour PKG_SYSCONFDIR. - Use RCD_SCRIPTS to handle the rc.d script. Regen distinfo; the directory where files extract has changed. Use buildlink2. Bump PKGREVISION to 1.
This commit is contained in:
parent
2750e3de7b
commit
e11ed225bf
4 changed files with 23 additions and 11 deletions
|
@ -1,9 +1,9 @@
|
||||||
# $NetBSD: Makefile,v 1.6 2003/07/17 22:51:08 grant Exp $
|
# $NetBSD: Makefile,v 1.7 2003/07/30 12:01:26 jmmv Exp $
|
||||||
#
|
#
|
||||||
|
|
||||||
DISTNAME= dynip_3.00
|
DISTNAME= dynip_3.00
|
||||||
PKGNAME= dynipclient-3.00
|
PKGNAME= dynipclient-3.00
|
||||||
WRKSRC= ${WRKDIR}
|
PKGREVISION= 1
|
||||||
CATEGORIES= net
|
CATEGORIES= net
|
||||||
MASTER_SITES= ftp://ftp.dynip.com/software/unix/
|
MASTER_SITES= ftp://ftp.dynip.com/software/unix/
|
||||||
|
|
||||||
|
@ -11,13 +11,23 @@ MAINTAINER= tech-pkg@NetBSD.org
|
||||||
HOMEPAGE= http://www.dynip.com/
|
HOMEPAGE= http://www.dynip.com/
|
||||||
COMMENT= Client for the dynip.com dynamic DNS service
|
COMMENT= Client for the dynip.com dynamic DNS service
|
||||||
|
|
||||||
|
USE_BUILDLINK2= YES
|
||||||
|
USE_PKGINSTALL= YES
|
||||||
|
|
||||||
|
RCD_SCRIPTS= dynipclient
|
||||||
|
|
||||||
|
EGDIR= ${PREFIX}/share/examples/dynipclient
|
||||||
|
CONF_FILES= ${EGDIR}/dynip.cfg ${PKG_SYSCONFDIR}/dynip.cfg
|
||||||
|
|
||||||
do-build:
|
do-build:
|
||||||
cd ${WRKSRC} && ./Configure freebsd ${PREFIX}/bin /etc ${PREFIX}/man
|
cd ${WRKSRC} && ./Configure freebsd ${PREFIX}/bin ${PKG_SYSCONFDIR} \
|
||||||
|
${PREFIX}/man
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
${INSTALL_PROGRAM} ${WRKSRC}/dynipadmin ${PREFIX}/bin/
|
${INSTALL_PROGRAM} ${WRKSRC}/dynipadmin ${PREFIX}/bin/
|
||||||
${INSTALL_PROGRAM} ${WRKSRC}/dynipclient ${PREFIX}/bin/
|
${INSTALL_PROGRAM} ${WRKSRC}/dynipclient ${PREFIX}/bin/
|
||||||
${INSTALL_DATA} ${WRKSRC}/*.1 ${PREFIX}/man/man1/
|
${INSTALL_DATA} ${WRKSRC}/*.1 ${PREFIX}/man/man1/
|
||||||
${INSTALL_SCRIPT} ${FILESDIR}/dynipclient.sh ${PREFIX}/etc/rc.d/dynipclient
|
${INSTALL_DATA_DIR} ${EGDIR}
|
||||||
|
${INSTALL_DATA} ${WRKSRC}/dynip.cfg ${EGDIR}
|
||||||
|
|
||||||
.include "../../mk/bsd.pkg.mk"
|
.include "../../mk/bsd.pkg.mk"
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
@comment $NetBSD: PLIST,v 1.2 2002/02/27 01:36:10 tv Exp $
|
@comment $NetBSD: PLIST,v 1.3 2003/07/30 12:01:26 jmmv Exp $
|
||||||
bin/dynipadmin
|
bin/dynipadmin
|
||||||
bin/dynipclient
|
bin/dynipclient
|
||||||
etc/rc.d/dynipclient
|
etc/rc.d/dynipclient
|
||||||
man/man1/dynipadmin.1
|
man/man1/dynipadmin.1
|
||||||
man/man1/dynipclient.1
|
man/man1/dynipclient.1
|
||||||
|
share/examples/dynipclient/dynip.cfg
|
||||||
|
@dirrm share/examples/dynipclient
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
$NetBSD: distinfo,v 1.1.1.1 2001/08/28 13:10:46 tv Exp $
|
$NetBSD: distinfo,v 1.2 2003/07/30 12:01:26 jmmv Exp $
|
||||||
|
|
||||||
SHA1 (dynip_3.00.tar.gz) = 51f92eb9fbfcf2f12349c5e3673ea967cc3256d4
|
SHA1 (dynip_3.00.tar.gz) = d1acee591e3ff51444f7dcbd7250c52a92a2d5f2
|
||||||
Size (dynip_3.00.tar.gz) = 37239 bytes
|
Size (dynip_3.00.tar.gz) = 22443 bytes
|
||||||
SHA1 (patch-aa) = ff1a5be64b46675f331b73415acdb04abc62936b
|
SHA1 (patch-aa) = ff1a5be64b46675f331b73415acdb04abc62936b
|
||||||
SHA1 (patch-ab) = d17b71dababab0149322e6954757eb3e46d9383c
|
SHA1 (patch-ab) = d17b71dababab0149322e6954757eb3e46d9383c
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!@RCD_SCRIPTS_SHELL@
|
||||||
#
|
#
|
||||||
# $NetBSD: dynipclient.sh,v 1.2 2002/09/23 14:52:14 grant Exp $
|
# $NetBSD: dynipclient.sh,v 1.3 2003/07/30 12:01:26 jmmv Exp $
|
||||||
#
|
#
|
||||||
# PROVIDE: dynipclient
|
# PROVIDE: dynipclient
|
||||||
# REQUIRE: NETWORK
|
# REQUIRE: NETWORK
|
||||||
|
@ -11,7 +11,7 @@ name="dynipclient"
|
||||||
rcvar=$name
|
rcvar=$name
|
||||||
command="@PREFIX@/bin/${name}"
|
command="@PREFIX@/bin/${name}"
|
||||||
pidfile="/var/run/${name}.pid"
|
pidfile="/var/run/${name}.pid"
|
||||||
required_files="/etc/dynip.cfg"
|
required_files="@PKG_SYSCONFDIR@/dynip.cfg"
|
||||||
|
|
||||||
load_rc_config $name
|
load_rc_config $name
|
||||||
run_rc_command "$1"
|
run_rc_command "$1"
|
||||||
|
|
Loading…
Reference in a new issue