A script to locate outdated, unmaintained ports on your machine

2014-10-30 Thread Tobias Rehbein
Hi all,

one of the questions I ask myself from time to time is "Which
umaintained ports that have upstream updates available live on my
machine?". Knowing the answer might lead to the adoption and update of
some orphaned ports.

To answer this question for myself I hacked a simple shell script
perusing the 'pkg query' command and scraping portscout.freebsd.org.

Please feel free to take a look, test and comment. I hope somebody will
find it useful.

https://github.com/blabber/lps

Best regards,

Tobias



pgpU9ElDsz5Ep.pgp
Description: PGP signature


Re: How to handle WITH_CLANG_IS_CC in ports

2012-11-29 Thread Tobias Rehbein
Am Fri, Nov 30, 2012 at 02:51:31AM +0900 schrieb Yamaya Takashi:
> 
> Include Mk/bsd.compiler.mk, and
> .if ${COMPILER_TYPE} == "clang"
>   clang specific code
> .endif
> 

Thanks. This is exactly what I was looking for. It is available in
CURRENT only though. I will tackle the build issue using this
information this weekend.

Regards,

Tobias

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: How to handle WITH_CLANG_IS_CC in ports

2012-11-27 Thread Tobias Rehbein
Am Mon, Nov 26, 2012 at 04:50:36PM +0100 schrieb Dimitry Andric:
> On 2012-11-26 16:16, Nikolai Lifanov wrote:
> >
> > On 11/25/2012 10:04 AM, Dimitry Andric wrote:
> > This is bad.
> > People with OSVERSION >= 124 and WITHOUT_CLANG_IS_CC set will be
> > left out.
> 
> Well, this was just a simple example, I'm sure you can figure out a
> zillion interesting ways to do this. :-)

But what I'm looking for is the right(TM) way to do it. With the switch
to clang as cc, I supposed there would be already a best practice.

Regards

Tobias / blabber

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: How to handle WITH_CLANG_IS_CC in ports

2012-11-27 Thread Tobias Rehbein
Am Mon, Nov 26, 2012 at 05:07:01PM +0100 schrieb Alberto Villa:
> For Qt 5 (and, soon, Qt 4 as well) I'm copying the logic of
> bsd.compiler.mk.

Is there any chance you turn this into a generic Mk macro?

Regards

Tobias
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


How to handle WITH_CLANG_IS_CC in ports

2012-11-25 Thread Tobias Rehbein
Hi all,

I am the maintainer of ganes/stonesoup. This port builds fine with gcc.
It also builds with clang, if the MAKE_ARGS are tweaked.

Currently I can check for

${CC:T:M*clang*}

to know if I have to change the MAKE_ARGS for building with clang or
not.

In CURRENT cc is clang and the environment variable CC is no longer set.
This lets the build of games/stonesoup fail. My question is how to
correctly check if cc is clang or not. My first guess was something
along the lines of

${CC:T:M*clang*} || (defined(WITH_CLANG_IS_CC) && ${CC:T:Mcc})

but I guess there is some kind of official way to handle this (ideally
warpped in some Mk macro.

Regards

Tobias

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Is there an unofficial graphics/gimp 2.7.4 port?

2012-01-22 Thread Tobias Rehbein
Hi all,

I will participate in a GIMP workshop this wednesday. GIMP 2.7.4 will be used in
this workshop. As this is a development snapshot and therefore not in the ports 
tree I
wondered if anyone on this list has an unofficial port of GIMP 2.7.4 I could
use?

gn...@freebsd.org, being the maintainer of graphics/gimp(-app) is in CC. I am
not subscribed to gn...@freebsd.org so please keep me in CC.

Kind regards,

 Tobias
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Could anyone give ports/147828 some love?

2010-08-05 Thread Tobias Rehbein
Hi all.

Could a committer with some spare time take a look at ports/147828?

http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/147828

It started as a small patch to add a slave port but now it contains a minor
(0.6.1) and a major update (0.7.1) as the upstream maintainers are quite active.

I would like to see this committed before more updates have to be appended to
this PR as it's already confusing in it's current state :)

As GNATS is always garbling my mails for some reason I attached the shar and
diff at this mail. I hope that's ok.

Regards Tobias
diff -ruN games/stonesoup.orig/Makefile games/stonesoup/Makefile
--- games/stonesoup.orig/Makefile	2010-08-05 08:39:47.0 +0200
+++ games/stonesoup/Makefile	2010-08-05 08:40:08.0 +0200
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	stonesoup
-PORTVERSION=	0.6.0
+PORTVERSION=	0.7.1
 CATEGORIES=	games
 MASTER_SITES=	SF/crawl-ref/Stone%20Soup/${PORTVERSION}
 DISTNAME=	stone_soup-${PORTVERSION}-nodeps
@@ -14,9 +14,7 @@
 MAINTAINER=	tobias.rehb...@web.de
 COMMENT=	Dungeon Crawl Stone Soup - a fun, free rogue-like game
 
-LIB_DEPENDS=	sqlite3:${PORTSDIR}/databases/sqlite3
-RUN_DEPENDS=	gtar:${PORTSDIR}/archivers/gtar
-
+USE_SQLITE=	yes
 USE_BZIP2=	yes
 USE_BISON=	build
 USE_GMAKE=	yes
@@ -26,13 +24,12 @@
 MAKE_JOBS_SAFE=	yes
 
 SAVEDIR?=	/var/games/${PORTNAME}
-WRKSRC=		${WRKDIR}/stone_soup-${PORTVERSION}/source/
+WRKSRC=		${WRKDIR}/stone_soup-${PORTVERSION}-1-g7ce9b19/source/
 
 SUB_FILES=	README.FreeBSD
 PLIST_SUB=	SAVEDIR="${SAVEDIR}"
 
-OPTIONS=	SDL		"SDL support (tiles interface)"	off \
-		SOUND		"Sound support"			off \
+OPTIONS=	SOUND		"Sound support"			off \
 		LUA_BINDINGS	"LUA bindings for user scripts"	on \
 		UNICODE		"Unicode glyphs (UTF-8)"	off \
 		WIZARD		"Wizard mode"			off
@@ -51,18 +48,18 @@
 MAKE_ARGS+=	wizard
 .endif
 
-.if defined(WITHOUT_SDL)
-CONFLICTS+=	${PORTNAME}-sdl-[0-9]*
-PLIST_SUB+=	SDL="@comment "
-.else
+.if defined(WITH_SDL)
 CONFLICTS+=	${PORTNAME}-[0-9]*
 MAKE_ARGS+=	TILES=y
 PLIST_SUB+=	SDL=""
 PKGNAMESUFFIX=	-sdl
+USE_FREETYPE=	yes
 BUILD_DEPENDS+=	pkg-config:${PORTSDIR}/devel/pkg-config
-LIB_DEPENDS+=	png.6:${PORTSDIR}/graphics/png \
-		freetype:${PORTSDIR}/print/freetype2
+LIB_DEPENDS+=	png.6:${PORTSDIR}/graphics/png
 USE_SDL=	sdl image
+.else
+CONFLICTS+=	${PORTNAME}-sdl-[0-9]*
+PLIST_SUB+=	SDL="@comment "
 .endif
 
 .if defined(WITH_SOUND)
diff -ruN games/stonesoup.orig/distinfo games/stonesoup/distinfo
--- games/stonesoup.orig/distinfo	2010-08-05 08:39:47.0 +0200
+++ games/stonesoup/distinfo	2010-08-05 08:40:08.0 +0200
@@ -1,3 +1,3 @@
-MD5 (stone_soup-0.6.0-nodeps.tar.bz2) = 866e315470a592572e7ce8a7214c7615
-SHA256 (stone_soup-0.6.0-nodeps.tar.bz2) = f05ba17b64f3f669da3fb4185ed2e1425bd6a2fa8375fa4671807c67b2e4f8ff
-SIZE (stone_soup-0.6.0-nodeps.tar.bz2) = 4597191
+MD5 (stone_soup-0.7.1-nodeps.tar.bz2) = e5fa03fc9206ede190f288bf0b24500b
+SHA256 (stone_soup-0.7.1-nodeps.tar.bz2) = 4978869637595e6c3573f0cc72e7aa1be05ab2b73fcef691692c5cbc044251bb
+SIZE (stone_soup-0.7.1-nodeps.tar.bz2) = 4878043
diff -ruN games/stonesoup.orig/files/patch-AppHdr.h games/stonesoup/files/patch-AppHdr.h
--- games/stonesoup.orig/files/patch-AppHdr.h	2010-08-05 08:39:47.0 +0200
+++ games/stonesoup/files/patch-AppHdr.h	2010-08-05 09:26:42.0 +0200
@@ -1,6 +1,6 @@
 ./AppHdr.h.orig	2010-03-27 00:43:25.0 +0100
-+++ ./AppHdr.h	2010-04-18 13:17:52.0 +0200
-@@ -157,7 +157,7 @@
+--- ./AppHdr.h.orig	2010-07-24 05:31:45.0 +0200
 ./AppHdr.h	2010-08-05 09:25:27.0 +0200
+@@ -161,7 +161,7 @@
  //  setuid or setgid. Filenames passed to this command *are not
  //  validated in any way*.
  //
@@ -9,14 +9,3 @@
  
  // For cases when the game will be played on terms that don't support the
  // curses "bold == lighter" 16 colour mode. -- bwr
-@@ -457,8 +457,8 @@
- #ifndef SAVE_PACKAGE_NONE
- #ifdef USE_TAR
-   #define PACKAGE_SUFFIX ".tar.gz"
--  #define SAVE_PACKAGE_CMD "tar"
--  #define LOAD_UNPACKAGE_CMD "tar -zxf %s"PACKAGE_SUFFIX" -C %s"
-+  #define SAVE_PACKAGE_CMD "gtar"
-+  #define LOAD_UNPACKAGE_CMD "gtar -zxf %s"PACKAGE_SUFFIX" -C %s"
-   #define UNPACK_SPECIFIC_FILE_CMD LOAD_UNPACKAGE_CMD " %s"
- #else
- #ifdef USE_ZIP
diff -ruN games/stonesoup.orig/files/patch-makefile games/stonesoup/files/patch-makefile
--- games/stonesoup.orig/files/patch-makefile	2010-08-05 08:39:47.0 +0200
+++ games/stonesoup/files/patch-makefile	2010-08-05 09:26:42.0 +0200
@@ -1,22 +1,36 @@
 ./makefile.orig	2010-03-27 00:43:25.0 +0100
-+++ ./makefile	2010-04-18 13:18:41.0 +0200
-@@ -44,7 +44,7 @@
+--- ./makefile.orig	2010-07-24 05:31:49.0 +0200
 ./makefile	2010-08-05 09:25:27.0 +0200
+@@ -45,14 +45,7 @@
  #ask for a package with convenience libraries instead -- we'll try to provide
  #them somewhere in the near future.
  
 -GAME = crawl
+-
+-ASSERTS = yes
+-
+-# Disable GNU M

Re: Combining multiple programs in single port

2010-02-16 Thread Tobias Rehbein
Am Tue, Feb 16, 2010 at 04:33:23PM +0100 schrieb Jeroen Schot:
> I want to provide a port for a set of small utilities[1], all in the same
> scope and from the same upstream, to FreeBSD. Since all are very small
> (around 100 line of C), making seven separate ports seems a bit
> overkill. 
> 
> What is standard procedure for this?
> Are there any existing ports doing something similar?
> 
> [1]: http://tools.suckless.org/

Please note that at least dmenu already has it's own port (x11/dmenu).

Regards

-- 
Tobias Rehbein

PGP key: 4F2AE314
server:  keys.gnupg.net
fingerprint: ECDA F300 1B6E 9B87 8524  8663 E8B6 3138 4F2A E314
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Looking for a distfile mirror

2009-03-07 Thread Tobias Rehbein
Hi all.

I'm maintainer of the audio/ogg2mp3 port. This port isn't supported upstream 
anymore,
but I'm trying to keep it in a usable state.

Since a few weeks the MASTERSITE of the port disappeared. I contacted the author
of ogg2mp3 to see if he'll provide an alternative mirror but got no answer.

So, if anybody has 14K webspace free to mirror the distfile of audio/ogg2mp3
let me know.

Thanks in advance

Tobias
-- 
Tobias Rehbein

PGP key: 4F2AE314
server:  keys.gnupg.net
fingerprint: ECDA F300 1B6E 9B87 8524  8663 E8B6 3138 4F2A E314


pgphU75MTLe37.pgp
Description: PGP signature


Why is security/pinentry not a dependency of security/gnupg

2008-06-22 Thread Tobias Rehbein
Hi all.

Perhaps someone can share his wisdom with me. I just installed security/gnupg
and tried to create a key pair using "gpg --gen-key". After issuing the command
gnupg barfed at me that pinentry could not be started. Now I wonder why pinentry
is not a dependency of gpg as it seems to rely on it?

Or is there some way to use gpg without pinentry?

Regards Tobias
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Please review: Update of www/nanoblogger

2008-06-20 Thread Tobias Rehbein
Hi all.

If someone is interested please review my update for www/nanoblogger which is a
rather big update. This is my first try on ports and so I would appreciate any
comments.

Portlint keeps warning me I should define DISTFILES earlier, but I don't know
how as I don't know the value of DISTFILES without bsd.port.pre.mk. Any hints?

Regards Tobias

And here is the diff:

diff -ruN www/nanoblogger.orig/Makefile www/nanoblogger/Makefile
--- www/nanoblogger.orig/Makefile   2008-06-13 23:33:10.0 +
+++ www/nanoblogger/Makefile2008-06-20 23:53:47.0 +
@@ -7,12 +7,12 @@
 #
 
 PORTNAME=  nanoblogger
-PORTVERSION=   3.3
-PORTREVISION=  2
+DISTVERSION=   3.4-rc1
 CATEGORIES=www
 MASTER_SITES=  SF
+MASTER_SITE_SUBDIR=nanoblogger
 
-MAINTAINER=[EMAIL PROTECTED]
+MAINTAINER=[EMAIL PROTECTED]
 COMMENT=   Small weblog engine written in Bash for the command line
 
 RUN_DEPENDS=   bash:${PORTSDIR}/shells/bash
@@ -21,12 +21,45 @@
 
 SUB_FILES= pkg-message
 
-post-patch:
-   @${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/nb
-   @${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX}," 
${WRKSRC}/plugins/entry/format/markdown.sh
-   @${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX}," 
${WRKSRC}/plugins/page/format/markdown.sh
+PLIST= ${WRKDIR}/pkg-plist
 
-do-install:
+OPTIONS=   EXTRA "install extra plugins and language packs" off \
+   MARKDOWN "install textproc/markdown as dependency" off
+
+WRKSRC_EXTRA=  ${WRKDIR}/${PORTNAME}-extra-${DISTVERSION}
+
+.include 
+
+DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
+.if defined(WITH_EXTRA)
+DISTFILES+=${PORTNAME}-extra-${DISTVERSION}${EXTRACT_SUFX}
+.if !defined(WITHOUT_EXAMPLES)
+PLIST_SUB= EXAMPLES=""
+.else
+PLIST_SUB= EXAMPLES="@comment "
+.endif
+.endif
+
+.if defined(WITH_MARKDOWN)
+RUN_DEPENDS+=  markdown:${PORTSDIR}/textproc/markdown
+.endif
+
+post-patch: .SILENT
+   ${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX}," ${WRKSRC}/nb
+   ${REINPLACE_CMD} -e "s,%%DATADIR%%,${DATADIR}," ${WRKSRC}/nb
+   ${REINPLACE_CMD} -e "s,%%DOCSDIR%%,${DOCSDIR}," ${WRKSRC}/nb
+   ${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX}," ${WRKSRC}/nb.conf
+   ${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX}," 
${WRKSRC}/plugins/entry/format/markdown.sh
+   ${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX}," 
${WRKSRC}/plugins/page/format/markdown.sh
+
+pre-install: .SILENT
+   ${CAT} ${PKGDIR}/pkg-plist > ${WRKDIR}/pkg-plist
+.if defined(WITH_EXTRA)
+   ${CAT} ${PKGDIR}/pkg-plist.extra ${PKGDIR}/pkg-plist.extra.dirrm >> 
${WRKDIR}/pkg-plist
+.endif
+   ${CAT} ${PKGDIR}/pkg-plist.dirrm >> ${WRKDIR}/pkg-plist
+
+do-install: .SILENT
${INSTALL_SCRIPT} ${WRKSRC}/nb ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/nb.conf ${PREFIX}/etc/nb.conf.sample
${MKDIR} ${DATADIR}
@@ -36,8 +69,14 @@
${COPYTREE_SHARE} \* ${DATADIR}/${data} "! -name *.orig 
! -name *.bak" )
 .endfor
${CP} ${WRKSRC}/welcome-to-nb.txt ${DATADIR}
+.if defined(WITH_EXTRA)
+.for data in default lang plugins
+   ( cd ${WRKSRC_EXTRA}/${data} && \
+   ${COPYTREE_SHARE} \* ${DATADIR}/${data} "! -name *.orig ! -name 
*.bak" )
+.endfor
+.endif
 
-post-install:
+post-install: .SILENT
@if [ ! -f ${PREFIX}/etc/nb.conf ]; then \
${CP} -p ${PREFIX}/etc/nb.conf.sample ${PREFIX}/etc/nb.conf; \
fi
@@ -46,7 +85,19 @@
 .for doc in COPYING ChangeLog README TODO docs/nanoblogger.html
${INSTALL_MAN} ${WRKSRC}/${doc} ${DOCSDIR}
 .endfor
+.if defined(WITH_EXTRA)
+.for doc in ChangeLog README
+   ${INSTALL_MAN} ${WRKSRC_EXTRA}/${doc} ${DOCSDIR}/${doc}-extra
+.endfor
+.for doc in nanoblogger_de.html nanoblogger_fr.html
+   ${INSTALL_MAN} ${WRKSRC_EXTRA}/docs/${doc} ${DOCSDIR}
+.endfor
+.endif
+.endif
+.if defined(WITH_EXTRA) && !defined(WITHOUT_EXAMPLES)
+   ${MKDIR} ${EXAMPLESDIR}
+   ${INSTALL_MAN} 
${WRKSRC_EXTRA}/docs/examples/nanoblogger.bash_completion ${EXAMPLESDIR}
 .endif
@${CAT} ${PKGMESSAGE}
 
-.include 
+.include 
diff -ruN www/nanoblogger.orig/distinfo www/nanoblogger/distinfo
--- www/nanoblogger.orig/distinfo   2007-01-16 10:47:17.0 +
+++ www/nanoblogger/distinfo2008-06-20 22:17:30.0 +
@@ -1,3 +1,6 @@
-MD5 (nanoblogger-3.3.tar.gz) = c9df242e48be0c9b7fca2443c00fd6dc
-SHA256 (nanoblogger-3.3.tar.gz) = 
b49b25ee18c42dc9cf47fdd456e5dd19033456c64104a0ccba34e318e5daf1a0
-SIZE (nanoblogger-3.3.tar.gz) = 82302
+MD5 (nanoblogger-3.4-rc1.tar.gz) = e6fd8e6445ccc0d9e8686e14f0cce8b8
+SHA256 (nanoblogger-3.4-rc1.tar.gz) = 
1d4e097d04d8cc4616ba5a11d0b54ffe0b868236fd18be4618a1b120a8d73046
+SIZE (nanoblogger-3.4-rc1.tar.gz) = 89354
+MD5 (nanoblogger-extra-3.4-rc1.tar.gz) = 35af8539a0ed35153575b4f7a65771ff
+SHA256 (nanoblogger-extra-3.4-rc1.tar.gz) = 
f073c1d8616479f7f44cdb37fc7c08569a0ff18d0607f0df7a8a97b80b5520ef
+SIZE (nanoblogger-extra-3.4-rc1.tar.gz) = 61334
diff -ruN www/na

New version for unmaintained port www/nanoblogger

2008-06-14 Thread Tobias Rehbein
Hi all.

Today version 3.4RC1 was released for the currently unmaintained port
www/nanoblogger. As I use this software I would like to prepare a port for
nanoblogger 3.4. 

I just wanted to make sure there's no one else doing the same thing in
parallel. So if someone is working on porting nanoblogger 3.4 please drop me a
line.

Regards

Tobias
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"