blob: fb65513a68469e86313131be4120721b06e47f52 (
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
|
# $NetBSD: Makefile,v 1.21 2003/07/17 22:51:22 grant Exp $
# FreeBSD Id: Makefile,v 1.6 1996/12/01 01:22:54 obrien Exp
#
DISTNAME= mirror-2.9
PKGREVISION= 1
WRKSRC= ${WRKDIR}
CATEGORIES= net
MASTER_SITES= ftp://src.doc.ic.ac.uk/computing/archiving/mirror/
MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://sunsite.org.uk/packages/mirror/
COMMENT= Mirror packages on remote sites
USE_PERL5= # defined
MAKEFILE= makefile
SCRIPTS_ENV+= PERL5=${PERL5}
REPLACE_PERL= do_unlinks.pl mirror.pl mm.pl pkgs_to_mmin.pl
pre-configure:
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
pre-install:
${INSTALL_DATA_DIR} ${PREFIX}/lib/mirror
post-install:
@if [ ! -f ${PREFIX}/lib/mirror/mirror.defaults ]; then \
${CP} -p \
${PREFIX}/lib/mirror/mirror.defaults.dist \
${PREFIX}/lib/mirror/mirror.defaults; \
fi
.include "../../mk/bsd.pkg.mk"
|