diff options
author | sobomax <sobomax@FreeBSD.org> | 2001-03-14 23:05:24 +0800 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2001-03-14 23:05:24 +0800 |
commit | e8aef361ab12a2ef94d6685b1b0fe381135f5de1 (patch) | |
tree | 24bc68ea391cda293530d16b693f64a3de4964f2 /www | |
parent | 82e8fa5317e001c779bbb8b5541ad87e4d7a9228 (diff) | |
download | freebsd-ports-gnome-e8aef361ab12a2ef94d6685b1b0fe381135f5de1.tar.gz freebsd-ports-gnome-e8aef361ab12a2ef94d6685b1b0fe381135f5de1.tar.zst freebsd-ports-gnome-e8aef361ab12a2ef94d6685b1b0fe381135f5de1.zip |
o Fix breakage (missed sys/types.h);
o respect CC/CFLAGS;
o use ${BSD_INSTALL_*} masros to install binary and script;
o make it PREFIX-clean.
Submitted by: bento
Diffstat (limited to 'www')
-rw-r--r-- | www/webresolve/Makefile | 4 | ||||
-rw-r--r-- | www/webresolve/files/patch-Makefile | 28 | ||||
-rw-r--r-- | www/webresolve/files/patch-webresolve.c | 13 |
3 files changed, 41 insertions, 4 deletions
diff --git a/www/webresolve/Makefile b/www/webresolve/Makefile index 054434149dcb..6429d28663e2 100644 --- a/www/webresolve/Makefile +++ b/www/webresolve/Makefile @@ -13,9 +13,5 @@ MASTER_SITES= ftp://siag.nu/pub/webresolve/ MAINTAINER= joseph@randomnetworks.com ALL_TARGET= webresolve -MAKE_ARGS= PREFIX=${PREFIX} - -post-install: - @strip ${PREFIX}/bin/webresolve .include <bsd.port.mk> diff --git a/www/webresolve/files/patch-Makefile b/www/webresolve/files/patch-Makefile new file mode 100644 index 000000000000..510a5352b30a --- /dev/null +++ b/www/webresolve/files/patch-Makefile @@ -0,0 +1,28 @@ + +$FreeBSD$ + +--- Makefile 2001/03/14 14:45:39 1.1 ++++ Makefile 2001/03/14 14:46:41 +@@ -1,9 +1,9 @@ + + VERSION = 0.0.1 + +-CC = gcc +-CFLAGS = -Wall -g +-PREFIX = /usr/local ++CC ?= gcc ++CFLAGS += -Wall ++PREFIX ?= /usr/local + BINDIR = $(PREFIX)/bin + + webresolve: webresolve.c +@@ -17,7 +17,8 @@ + rm -rf webresolve-$(VERSION) + + install: webresolve +- cp webresolve splitwr $(BINDIR) ++ $(BSD_INSTALL_PROGRAM) webresolve $(BINDIR) ++ $(BSD_INSTALL_SCRIPT) splitwr $(BINDIR) + + uninstall: + rm -f $(BINDIR)/webresolve $(BINDIR)/splitwr diff --git a/www/webresolve/files/patch-webresolve.c b/www/webresolve/files/patch-webresolve.c new file mode 100644 index 000000000000..f0fdd41ab812 --- /dev/null +++ b/www/webresolve/files/patch-webresolve.c @@ -0,0 +1,13 @@ + +$FreeBSD$ + +--- webresolve.c 2001/03/14 14:44:11 1.1 ++++ webresolve.c 2001/03/14 14:44:26 +@@ -24,6 +24,7 @@ + #include <string.h> + #include <ctype.h> + #include <netdb.h> ++#include <sys/types.h> + #include <sys/socket.h> + #include <netinet/in.h> + #include <arpa/inet.h> |