2004-01-20 13:18:15 +01:00
|
|
|
# $NetBSD: Makefile,v 1.22 2004/01/20 12:22:19 agc Exp $
|
2003-05-06 19:40:18 +02:00
|
|
|
# FreeBSD Id: Makefile,v 1.6 1996/12/01 01:22:54 obrien Exp
|
1997-10-27 05:51:39 +01:00
|
|
|
#
|
|
|
|
|
2000-03-27 00:33:17 +02:00
|
|
|
DISTNAME= mirror-2.9
|
2002-05-07 15:26:32 +02:00
|
|
|
PKGREVISION= 1
|
1997-10-27 05:51:39 +01:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= ftp://src.doc.ic.ac.uk/computing/archiving/mirror/
|
|
|
|
|
2003-07-18 00:50:55 +02:00
|
|
|
MAINTAINER= tech-pkg@NetBSD.org
|
2002-10-30 09:47:39 +01:00
|
|
|
HOMEPAGE= http://sunsite.org.uk/packages/mirror/
|
2001-02-17 18:52:59 +01:00
|
|
|
COMMENT= Mirror packages on remote sites
|
1997-10-27 05:51:39 +01:00
|
|
|
|
2000-08-27 04:46:03 +02:00
|
|
|
USE_PERL5= # defined
|
1997-10-28 02:02:29 +01:00
|
|
|
|
2004-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}
|
1997-10-27 05:51:39 +01:00
|
|
|
MAKEFILE= makefile
|
2000-08-27 04:46:03 +02:00
|
|
|
SCRIPTS_ENV+= PERL5=${PERL5}
|
1997-10-27 05:51:39 +01:00
|
|
|
|
2001-10-26 13:35:03 +02:00
|
|
|
REPLACE_PERL= do_unlinks.pl mirror.pl mm.pl pkgs_to_mmin.pl
|
1999-12-28 19:15:43 +01:00
|
|
|
|
2002-05-07 15:26:32 +02:00
|
|
|
pre-configure:
|
2001-10-26 13:35:03 +02:00
|
|
|
cd ${WRKSRC}; \
|
|
|
|
for i in mirror.pl mm.pl; do \
|
|
|
|
${SED} -e 's:!!PREFIX!!:${PREFIX}:g' $$i >$$i.BAK;\
|
|
|
|
${MV} -f $$i.BAK $$i; \
|
|
|
|
done
|
2002-05-07 15:26:32 +02:00
|
|
|
|
1997-10-27 05:51:39 +01:00
|
|
|
pre-install:
|
2001-02-25 05:17:35 +01:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/lib/mirror
|
1997-10-27 05:51:39 +01:00
|
|
|
|
2000-04-19 18:16:51 +02:00
|
|
|
post-install:
|
|
|
|
@if [ ! -f ${PREFIX}/lib/mirror/mirror.defaults ]; then \
|
|
|
|
${CP} -p \
|
|
|
|
${PREFIX}/lib/mirror/mirror.defaults.dist \
|
|
|
|
${PREFIX}/lib/mirror/mirror.defaults; \
|
|
|
|
fi
|
|
|
|
|
1998-04-15 12:38:15 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|