import portroach-1.0.0, a fork of portscout focusing on OpenBSD support

ok aja@
This commit is contained in:
jasper 2014-09-05 14:36:47 +00:00
parent 84cf5bbb1a
commit 96387df235
6 changed files with 152 additions and 0 deletions

62
misc/portroach/Makefile Normal file
View File

@ -0,0 +1,62 @@
# $OpenBSD: Makefile,v 1.1.1.1 2014/09/05 14:36:47 jasper Exp $
COMMENT= OpenBSD ports tree version scanner
GH_ACCOUNT= jasperla
GH_PROJECT= portroach
GH_TAGNAME= 1.0.0
GH_COMMIT= a7dfd2cfb60e870ed4e5f4a18f0af17df39cf167
DISTNAME= ${GH_PROJECT}-${GH_TAGNAME}
CATEGORIES= misc
MAINTAINER= Jasper Lievisse Adriaanse <jasper@openbsd.org>
HOMEPAGE= http://jasperla.github.io/portroach/
# BSD
PERMIT_PACKAGE_CDROM= Yes
MODULES= perl
RUN_DEPENDS= converters/p5-JSON \
devel/p5-Try-Tiny \
mail/p5-MIME-Lite \
sysutils/p5-Proc-Queue \
textproc/p5-XML-XPath \
www/p5-HTML-Parser \
www/p5-URI \
www/p5-XML-Feed \
www/p5-libwww
# database
RUN_DEPENDS += p5-DBD-SQLite-*|p5-DBD-Pg-*:databases/p5-DBD-SQLite
PKG_ARCH= *
NO_BUILD= Yes
NO_TEST= Yes
pre-configure:
${SUBST_CMD} ${WRKSRC}/portroach.conf.dist
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/portroach.pl ${PREFIX}/bin/portroach
${INSTALL_DATA_DIR} ${PREFIX}/share/portroach/{sql,templates}/
cd ${WRKSRC}/templates/ && umask 022 && pax -rw . \
${PREFIX}/share/portroach/templates/
${INSTALL_DATA} ${WRKSRC}/sql/* \
${PREFIX}/share/portroach/sql/
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/portroach/
${INSTALL_DATA} ${WRKSRC}/portroach.conf.dist \
${PREFIX}/share/examples/portroach/
${INSTALL_DATA_DIR} ${PREFIX}/${P5SITE}/Portroach/
cd ${WRKSRC}/Portroach/ && umask 022 && pax -rw . \
${PREFIX}/${P5SITE}/Portroach/
${INSTALL_DATA} ${WRKSRC}/Portroach.pm ${PREFIX}/${P5SITE}/
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/portroach/
.for f in README.md docs/portroach-portconfig.txt
${INSTALL_DATA} ${WRKSRC}/$f ${PREFIX}/share/doc/portroach/
.endfor
/usr/bin/pod2man ${WRKSRC}/portroach.pod > ${PREFIX}/man/man1/portroach.1
.include <bsd.port.mk>

2
misc/portroach/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (portroach-1.0.0.tar.gz) = NGSLQJUQ0dEKNAB/WxjImENPHG2OSE27KDs5kRNyP3Y=
SIZE (portroach-1.0.0.tar.gz) = 55119

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-README_md,v 1.1.1.1 2014/09/05 14:36:47 jasper Exp $
--- README.md.orig Fri Sep 5 16:24:00 2014
+++ README.md Fri Sep 5 16:24:15 2014
@@ -23,7 +23,7 @@ Results
---
The results are available over at
-[ftp.fr.openbsd.org/portscout](http://ftp.fr.openbsd.org/portscout/), kindly
+[ftp.fr.openbsd.org/portroach](http://ftp.fr.openbsd.org/portroach/), kindly
hosted by ajacoutot@.
Copyright

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-portroach_conf_dist,v 1.1.1.1 2014/09/05 14:36:47 jasper Exp $
--- portroach.conf.dist.orig Fri Sep 5 15:56:15 2014
+++ portroach.conf.dist Fri Sep 5 16:23:58 2014
@@ -42,7 +42,7 @@ ports dir = /usr/ports # Ports root
html data dir = %(wwwdir)/portroach # Where to put generated HTML
-templates dir = /usr/local/share/portroach/templates # Where HTML templates are kept
+templates dir = ${PREFIX}/share/portroach/templates # Where HTML templates are kept
#-- Limit Processing ----------------------------------------------------------
@@ -74,7 +74,7 @@ indexfile enable = true # Use INDEX if needed
# The sender address will have the local hostname attached if it
# is a bare username.
-mail enable = false
+mail enable = true
mail from = portroach # Sender address
mail subject = OpenBSD ports you maintain which are out of date

6
misc/portroach/pkg/DESCR Normal file
View File

@ -0,0 +1,6 @@
Portroach is a tool which looks for new versions of software in the
OpenBSD ports tree, and potentially other software repositories.
Various factors make this task a bit more difficult than it might
initially seem. In particular, the array of weird and wonderful
versioning schemes software vendors manage to come up with.

49
misc/portroach/pkg/PLIST Normal file
View File

@ -0,0 +1,49 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2014/09/05 14:36:47 jasper Exp $
@pkgpath misc/portscout
bin/portroach
${P5SITE}/Portroach/
${P5SITE}/Portroach.pm
${P5SITE}/Portroach/API.pm
${P5SITE}/Portroach/Config.pm
${P5SITE}/Portroach/Const.pm
${P5SITE}/Portroach/DataSrc/
${P5SITE}/Portroach/DataSrc.pm
${P5SITE}/Portroach/DataSrc/Ports.pm
${P5SITE}/Portroach/Make.pm
${P5SITE}/Portroach/SQL/
${P5SITE}/Portroach/SQL.pm
${P5SITE}/Portroach/SQL/Pg.pm
${P5SITE}/Portroach/SQL/SQLite.pm
${P5SITE}/Portroach/SQL/mysql.pm
${P5SITE}/Portroach/SiteHandler/
${P5SITE}/Portroach/SiteHandler.pm
${P5SITE}/Portroach/SiteHandler/CPAN.pm
${P5SITE}/Portroach/SiteHandler/GitHub.pm
${P5SITE}/Portroach/SiteHandler/Hackage.pm
${P5SITE}/Portroach/SiteHandler/RubyGems.pm
${P5SITE}/Portroach/SiteHandler/SourceForge.pm
${P5SITE}/Portroach/Template.pm
${P5SITE}/Portroach/Util.pm
@man man/man1/portroach.1
share/doc/portroach/
share/doc/portroach/README.md
share/doc/portroach/portroach-portconfig.txt
share/examples/portroach/
share/examples/portroach/portroach.conf.dist
@mode 0640
@sample ${SYSCONFDIR}/portroach.conf
@mode
share/portroach/
share/portroach/sql/
share/portroach/sql/mysql_init.sql
share/portroach/sql/pgsql_destroy.sql
share/portroach/sql/pgsql_init.sql
share/portroach/sql/sqlite_destroy.sql
share/portroach/sql/sqlite_init.sql
share/portroach/templates/
share/portroach/templates/assets/
share/portroach/templates/assets/portroach.js
share/portroach/templates/index.html
share/portroach/templates/maintainer.html
share/portroach/templates/reminder.mail
share/portroach/templates/restricted-ports.html