- Support staging
- Define DOCS - Respect CC - Fix build with clang
This commit is contained in:
parent
13f7f4ae26
commit
416514b8eb
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=345079
@ -11,18 +11,15 @@ COMMENT= Listens for DNS queries on a UDP port and change the answer
|
||||
|
||||
USE_RC_SUBR= dnsreflector
|
||||
|
||||
MAN1= dnsreflector.1
|
||||
PORTDOCS= README
|
||||
PLIST_FILES= sbin/dnsreflector man/man1/dnsreflector.1.gz
|
||||
|
||||
PLIST_FILES= sbin/dnsreflector
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
NO_STAGE= yes
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/dnsreflector ${PREFIX}/sbin
|
||||
${INSTALL_DATA} ${WRKSRC}/dnsreflector.1 ${MANPREFIX}/man/man1/
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
||||
.endif
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/dnsreflector ${STAGEDIR}${PREFIX}/sbin
|
||||
${INSTALL_DATA} ${WRKSRC}/dnsreflector.1 ${STAGEDIR}${MANPREFIX}/man/man1/
|
||||
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- Makefile.orig 2003-05-01 16:12:56.000000000 +0300
|
||||
+++ Makefile 2009-05-30 15:06:02.000000000 +0300
|
||||
--- Makefile.orig 2003-05-01 15:12:56.000000000 +0200
|
||||
+++ Makefile 2014-02-19 12:59:01.676164732 +0100
|
||||
@@ -1,25 +1,12 @@
|
||||
-# $Id: Makefile,v 1.7 2003/05/01 13:12:56 armin Exp $
|
||||
|
||||
@ -7,8 +7,8 @@
|
||||
-SRCS=dnsreflector.c
|
||||
-MAN=dnsreflector.1
|
||||
+OBJS = dnsreflector.o
|
||||
+CFLAGS = -g -Wall -Werror
|
||||
+CC = gcc
|
||||
+CFLAGS += -Wall -Werror
|
||||
+CC ?= gcc
|
||||
+STRIP = strip
|
||||
|
||||
-BINDIR=/usr/local/sbin
|
||||
|
Loading…
Reference in New Issue
Block a user