Files
pkgsrc-ng/net/mirror/patches/patch-aa
2013-09-26 17:14:40 +02:00

55 lines
2.2 KiB
Plaintext

$NetBSD: patch-aa,v 1.7 2010/02/11 22:08:58 joerg Exp $
--- makefile.orig 1998-06-02 04:28:47.000000000 +1000
+++ makefile
@@ -41,7 +41,7 @@ FILES= README.txt \
$(WEBFILES)
all:
- echo try make mirror.tar
+# echo try make mirror.tar
mirror.tar: $(FILES)
rev=`./mirror.pl -v | perl -ane 'print "$$F[2]\n";'`; echo $rev; \
@@ -65,25 +65,26 @@ PLMODE = 644
# mode to install executables
EXMODE = 755
# group to own all the files
-GRP = gnu
+GRP = bin
# directory to install .pl (perl library) files
-PLDIR = /usr/local/perl5/lib/perl5
+PLDIR = ${DESTDIR}${PREFIX}/lib/mirror
# directory to install public executables
-BINDIR = /usr/local/sbin
+BINDIR = ${DESTDIR}${PREFIX}/bin
# directory to install man pages
-MANDIR = /usr/local/man/man1
+MANDIR = ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
install:
- install -m $(PLMODE) -g $(GRP) lchat.pl $(PLDIR)
- install -m $(PLMODE) -g $(GRP) dateconv.pl $(PLDIR)
- install -m $(PLMODE) -g $(GRP) ftp.pl $(PLDIR)
- install -m $(PLMODE) -g $(GRP) lsparse.pl $(PLDIR)
- install -m $(EXMODE) -g $(GRP) mirror.pl $(BINDIR)/mirror
- install -m $(EXMODE) -g $(GRP) do_unlinks.pl $(BINDIR)/do_unlinks
- install -m $(EXMODE) -g $(GRP) pkgs_to_mmin.pl $(BINDIR)/pkgs_to_mmin
- install -m $(EXMODE) -g $(GRP) mm.pl $(BINDIR)/mirror-master
- install -m $(PLMODE) -g $(GRP) mirror.man $(MANDIR)/mirror.1
- install -m $(PLMODE) -g $(GRP) mm.man $(MANDIR)/mirror-master.1
+ ${BSD_INSTALL} -c -m $(PLMODE) -g $(GRP) lchat.pl $(PLDIR)
+ ${BSD_INSTALL} -c -m $(PLMODE) -g $(GRP) dateconv.pl $(PLDIR)
+ ${BSD_INSTALL} -c -m $(PLMODE) -g $(GRP) ftp.pl $(PLDIR)
+ ${BSD_INSTALL} -c -m $(PLMODE) -g $(GRP) lsparse.pl $(PLDIR)
+ ${BSD_INSTALL} -c -m $(EXMODE) -g $(GRP) mirror.pl $(BINDIR)/mirror
+ ${BSD_INSTALL} -c -m $(EXMODE) -g $(GRP) do_unlinks.pl $(BINDIR)/do_unlinks
+ ${BSD_INSTALL} -c -m $(EXMODE) -g $(GRP) pkgs_to_mmin.pl $(BINDIR)/pkgs_to_mmin
+ ${BSD_INSTALL} -c -m $(EXMODE) -g $(GRP) mm.pl $(BINDIR)/mirrormaster
+ ${BSD_INSTALL} -c -m $(PLMODE) -g $(GRP) mirror.man $(MANDIR)/mirror.1
+ ${BSD_INSTALL} -c -m $(PLMODE) -g $(GRP) mm.man $(MANDIR)/mirrormaster.1
+ ${BSD_INSTALL} -c -m $(PLMODE) -g $(GRP) mirror.defaults $(PLDIR)/mirror.defaults.dist
# directory to install .pl (perl library) files for rperl
RPLDIR = /usr/local/rperl5/lib/perl5