Index: misc/Makefile =================================================================== --- misc/Makefile +++ misc/Makefile @@ -286,6 +286,7 @@ SUBDIR += osinfo-db SUBDIR += ossp-uuid SUBDIR += otter + SUBDIR += owrep SUBDIR += p5-Acme-ButFirst SUBDIR += p5-Array-Compare SUBDIR += p5-Array-Diff Index: misc/owrep/Makefile =================================================================== --- /dev/null +++ misc/owrep/Makefile @@ -0,0 +1,18 @@ +# $FreeBSD$ + +PORTNAME= owrep +DISTVERSION= 1.1 +CATEGORIES= misc +MASTER_SITES= http://www.ml1.org.uk/distfiles/ \ + http://www.ancientgeek.org.uk/distfiles/ + +MAINTAINER= bob@eager.cx +COMMENT= Weather reporting program based on openweathermap.org + +LICENSE= BSD3CLAUSE + +LIB_DEPENDS= libexpat.so:textproc/expat2 + +USES= localbase:ldflags zip + +.include Index: misc/owrep/distinfo =================================================================== --- /dev/null +++ misc/owrep/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1508972794 +SHA256 (owrep-1.1.zip) = 53e3ac6951b59619d817230cbf5f514961911ad625bfec4922094189963dfc0a +SIZE (owrep-1.1.zip) = 21700 Index: misc/owrep/files/patch-Makefile =================================================================== --- /dev/null +++ misc/owrep/files/patch-Makefile @@ -0,0 +1,41 @@ +--- Makefile.orig 2017-05-30 23:54:30 UTC ++++ Makefile +@@ -5,10 +5,10 @@ + # + CC?= clang + # +-INSTALL_TO = /usr/local/bin +-INSTALL_MAN1= /usr/local/man/man1 +-INSTALL_MAN5= /usr/local/man/man5 +-INSTALL_ETC= /usr/local/etc ++INSTALL_TO = $(DESTDIR)/$(PREFIX)/bin ++INSTALL_MAN1= $(DESTDIR)/$(PREFIX)/man/man1 ++INSTALL_MAN5= $(DESTDIR)/$(PREFIX)/man/man5 ++INSTALL_ETC= $(DESTDIR)/$(PREFIX)/etc + # + PRODUCT = owrep + # +@@ -38,7 +38,7 @@ CFLAGS+= -O2 $(COMFLAGS) -I /usr/local/i + all: $(PRODUCT) + # + $(PRODUCT): $(OBJ) +- $(CC) -o $(.TARGET) -L /usr/local/lib $(LIBS) $(.ALLSRC) ++ $(CC) -o $(.TARGET) $(LDFLAGS) $(LIBS) $(.ALLSRC) + # + depend: + mkdep $(CFLAGS) $(SRC) +@@ -46,10 +46,10 @@ depend: + install: $(PRODUCT) + gzip -f -k $(MAN1) + gzip -f -k $(MAN5) +- install -s -g wheel -o root $(PRODUCT) $(INSTALL_TO) +- install -g wheel -o root $(MAN1).gz $(INSTALL_MAN1) +- install -g wheel -o root $(MAN5).gz $(INSTALL_MAN5) +- install -g wheel -o root $(CONF) $(INSTALL_ETC) ++ install -s $(PRODUCT) $(INSTALL_TO) ++ install $(MAN1).gz $(INSTALL_MAN1) ++ install $(MAN5).gz $(INSTALL_MAN5) ++ install $(CONF) $(INSTALL_ETC) + rm -f $(MAN1).gz $(MAN5).gz + # + distfile: Index: misc/owrep/pkg-descr =================================================================== --- /dev/null +++ misc/owrep/pkg-descr @@ -0,0 +1,4 @@ +This is a basic weather reporting program. It uses data from +openweathermap.org, and uses a worldwide database. + +WWW: http://www.tavi.co.uk Index: misc/owrep/pkg-plist =================================================================== --- /dev/null +++ misc/owrep/pkg-plist @@ -0,0 +1,5 @@ +/you/have/to/check/what/makeplist/gives/you +bin/owrep +%%ETCDIR%%.conf.sample +man/man1/owrep.1.gz +man/man5/owrep.conf.5.gz