1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00

Add STAGEDIR support.

This commit is contained in:
Hiroki Sato 2013-10-17 04:01:01 +00:00
parent b07545a0d4
commit f1393f84fb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=330600
2 changed files with 26 additions and 9 deletions

View File

@ -18,16 +18,17 @@ USE_BZIP2= yes
USE_GMAKE= yes
MAKE_ARGS= sysconfdir=${PREFIX}/etc \
mandir=${MAN8PREFIX}/man/man8
MAN8= map-mbone.8 mrouted.8 mrinfo.8 mtrace.8
PORTDOCS= README AUTHORS ChangeLog
PLIST_FILES= sbin/map-mbone sbin/mrouted sbin/mrinfo sbin/mtrace \
etc/mrouted.conf
etc/mrouted.conf man/man8/map-mbone.8.gz \
man/man8/mrinfo.8.gz man/man8/mrouted.8.gz \
man/man8/mtrace.8.gz
OPTIONS_DEFINE= DOCS
.ifdef NOPORTDOCS
MAKE_ARGS+= datadir=${WRKDIR}/doc
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
MAKE_ARGS+= datadir=${DOCSDIR} doc=yes
.endif
NO_STAGE= yes
.include <bsd.port.mk>

View File

@ -1,5 +1,5 @@
--- Makefile.orig 2013-01-02 08:02:25.000000000 +0900
+++ Makefile 2013-01-02 08:02:30.000000000 +0900
--- Makefile.orig 2011-10-23 17:03:36.000000000 +0900
+++ Makefile 2013-10-17 12:59:19.000000000 +0900
@@ -51,7 +51,7 @@
$(MTRACE_OBJS) $(MSTAT_OBJS)
SRCS = $(OBJS:.o=.c)
@ -9,3 +9,19 @@
LINT = splint
LINTFLAGS = $(MCAST_INCLUDE) $(filter-out -W -Wall -Werror, $(CFLAGS)) -posix-lib -weak -skipposixheaders
@@ -70,13 +70,13 @@
install: $(EXECS)
@install -d $(DESTDIR)$(prefix)/sbin
@install -d $(DESTDIR)$(sysconfdir)
- @install -d $(DESTDIR)$(datadir)
+ @[ -z "${doc}" ] || install -d $(DESTDIR)$(datadir)
@install -d $(DESTDIR)$(mandir)
@for file in $(EXECS); do \
install -m 0755 $$file $(DESTDIR)$(prefix)/sbin/$$file; \
done
@install -b -m 0644 $(CONFIG) $(DESTDIR)$(sysconfdir)/$(CONFIG)
- @for file in $(DISTFILES); do \
+ @[ -z "${doc}" ] || for file in $(DISTFILES); do \
install -m 0644 $$file $(DESTDIR)$(datadir)/$$file; \
done
@for file in $(MANS); do \