Skip to content

Commit

Permalink
- Support staging
Browse files Browse the repository at this point in the history
- Define DOCS
- Respect CC
- Fix build with clang
  • Loading branch information
ehaupt committed Feb 19, 2014
1 parent fc1c23c commit ddd8a84
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
15 changes: 6 additions & 9 deletions dns/dnsreflector/Makefile
Expand Up @@ -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>
8 changes: 4 additions & 4 deletions dns/dnsreflector/files/patch-Makefile
@@ -1,14 +1,14 @@
--- 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 $

-PROG=dnsreflector
-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
Expand Down

0 comments on commit ddd8a84

Please sign in to comment.