diff options
author | miwi <miwi@FreeBSD.org> | 2011-07-03 02:33:24 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2011-07-03 02:33:24 +0800 |
commit | b1973e3e8525a08be3d1b0297871aad031ef4381 (patch) | |
tree | fb31e66ff4d7b3634ce2bb4419a066325cb32c2b /sysutils | |
parent | 4eb76b1d742d5c57e66dc660055029c2e1b32152 (diff) | |
download | freebsd-ports-graphics-b1973e3e8525a08be3d1b0297871aad031ef4381.tar.gz freebsd-ports-graphics-b1973e3e8525a08be3d1b0297871aad031ef4381.tar.zst freebsd-ports-graphics-b1973e3e8525a08be3d1b0297871aad031ef4381.zip |
- Fix MASTER_SITES
- Add LICENSE
- Support CC/CFLAGS properly
- Utilize PLIST_FILES
PR: 158444
Submitted by: Ports Fury
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/dwatch/Makefile | 23 | ||||
-rw-r--r-- | sysutils/dwatch/files/patch-Makefile | 21 | ||||
-rw-r--r-- | sysutils/dwatch/pkg-plist | 2 |
3 files changed, 16 insertions, 30 deletions
diff --git a/sysutils/dwatch/Makefile b/sysutils/dwatch/Makefile index 97509ceada4..b48e4145edf 100644 --- a/sysutils/dwatch/Makefile +++ b/sysutils/dwatch/Makefile @@ -7,19 +7,28 @@ PORTNAME= dwatch PORTVERSION= 0.1.1 +PORTREVISION= 1 CATEGORIES= sysutils -MASTER_SITES= ftp://siag.nu/pub/dwatch/ \ - http://siag.nu/pub/dwatch/ +MASTER_SITES= http://siag.nu/pub/dwatch/ MAINTAINER= ports@FreeBSD.org -COMMENT= Dwatch - A Daemon Watcher +COMMENT= A Daemon Watcher + +LICENSE= GPLv2 GPLv3 +LICENSE_COMB= dual MAN1= dwatch.1 +PLIST_FILES= bin/dwatch etc/dwatch.conf-dist -pre-install: - ${INSTALL_DATA} ${WRKSRC}/dwatch.conf ${PREFIX}/etc/dwatch.conf-dist +CFLAGS+= -DETCDIR="\"${PREFIX}/etc\"" \ + -DPS="\"/bin/ps -ax\"" -post-install: - ${STRIP_CMD} ${PREFIX}/bin/dwatch +do-build: + (cd ${BUILD_WRKSRC}; ${CC} ${CFLAGS} -o dwatch dwatch.c) + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/dwatch ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/dwatch.1 ${MANPREFIX}/man/man1 + ${INSTALL_DATA} ${WRKSRC}/dwatch.conf ${PREFIX}/etc/dwatch.conf-dist .include <bsd.port.mk> diff --git a/sysutils/dwatch/files/patch-Makefile b/sysutils/dwatch/files/patch-Makefile deleted file mode 100644 index f782803e66f..00000000000 --- a/sysutils/dwatch/files/patch-Makefile +++ /dev/null @@ -1,21 +0,0 @@ ---- Makefile.orig Wed Aug 14 21:37:07 2002 -+++ Makefile Wed Aug 14 21:36:47 2002 -@@ -10,7 +10,8 @@ - LDFLAGS = `./guess --libs` - - # This ps works for Linux and Solaris, at least --PS = "/bin/ps -ef" -+#PS = "/bin/ps -ef" -+PS = "/bin/ps -ax" - - # For Linux - #CFLAGS = -Wall -g -@@ -19,7 +20,7 @@ - #CFLAGS = -Wall -g - #LDFLAGS = -lnsl -lsocket - --PREFIX = /usr/local -+PREFIX ?= /usr/local - BINDIR = $(PREFIX)/bin - MANDIR = $(PREFIX)/man - MAN1DIR = $(MANDIR)/man1 diff --git a/sysutils/dwatch/pkg-plist b/sysutils/dwatch/pkg-plist deleted file mode 100644 index d4ac7620e99..00000000000 --- a/sysutils/dwatch/pkg-plist +++ /dev/null @@ -1,2 +0,0 @@ -bin/dwatch -etc/dwatch.conf-dist |