1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-31 10:46:16 +00:00

New port: misc/owrep: Weather reporting program based on openweathermap.org

PR:		223247
Submitted by:	Bob Eager <bob@eager.cx>
Approved by:	tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D13118
This commit is contained in:
Yuri Victorovich 2017-11-16 18:41:01 +00:00
parent 0a38eed238
commit 0a2f6f7c3b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=454323
6 changed files with 71 additions and 0 deletions

View File

@ -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

18
misc/owrep/Makefile Normal file
View File

@ -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 <bsd.port.mk>

3
misc/owrep/distinfo Normal file
View File

@ -0,0 +1,3 @@
TIMESTAMP = 1508972794
SHA256 (owrep-1.1.zip) = 53e3ac6951b59619d817230cbf5f514961911ad625bfec4922094189963dfc0a
SIZE (owrep-1.1.zip) = 21700

View File

@ -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:

4
misc/owrep/pkg-descr Normal file
View File

@ -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

4
misc/owrep/pkg-plist Normal file
View File

@ -0,0 +1,4 @@
bin/owrep
%%ETCDIR%%.conf.sample
man/man1/owrep.1.gz
man/man5/owrep.conf.5.gz