pkgsrc/net/upclient/Makefile

42 lines
1.3 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.11 2002/05/07 22:25:03 hubertf Exp $
#
DISTNAME= upclient-4.2.1.23
PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= http://uptimes.atomicvoid.net/files/
MAINTAINER= hubertf@netbsd.org
HOMEPAGE= http://uptimes.wonko.com/
COMMENT= Keeps track of your server uptime, and compares it to other hosts
ALL_TARGET= bsd
post-patch:
${MV} ${WRKSRC}/scripts/upchk ${WRKSRC}/scripts/upchk.bak
${SED} \
-e 's|@PREFIX@|${PREFIX}|g' \
>${WRKSRC}/scripts/upchk <${WRKSRC}/scripts/upchk.bak
do-build:
cd ${WRKSRC}/src && ${MAKE} ${ALL_TARGET}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/upclient ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/upclient
${INSTALL_DATA} ${WRKSRC}/AUTHORS ${PREFIX}/share/doc/upclient
${INSTALL_DATA} ${WRKSRC}/COPYING ${PREFIX}/share/doc/upclient
${INSTALL_DATA} ${WRKSRC}/HISTORY ${PREFIX}/share/doc/upclient
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/upclient
${INSTALL_DATA} ${WRKSRC}/FAQ ${PREFIX}/share/doc/upclient
${INSTALL_DATA} ${WRKSRC}/INSTALL ${PREFIX}/share/doc/upclient
${INSTALL_DATA} ${WRKSRC}/conf/upclient.conf ${PREFIX}/etc
${SED} \
-e 's|@PREFIX@|${PREFIX}|g' \
-e 's|@INSTALL@|${INSTALL}|g' \
-e 's|@SU@|${SU}|g' \
${FILESDIR}/upclient.sh >${PREFIX}/etc/rc.d/upclient
${CHMOD} +x ${PREFIX}/etc/rc.d/upclient
.include "../../mk/bsd.pkg.mk"