diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2004-05-27 21:30:09 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2004-05-27 21:30:09 +0000 |
commit | 0e1638a590170e6948404e7846a01587b7360eb9 (patch) | |
tree | 5edab6c845b01b227dbc46ad6b7f83dc054de993 /www/amphetadesk | |
parent | 22b98d2b4a77abaff3fd70b94a9be22fcbfc3229 (diff) | |
download | ports-0e1638a590170e6948404e7846a01587b7360eb9.tar.gz ports-0e1638a590170e6948404e7846a01587b7360eb9.zip |
Notes
Diffstat (limited to 'www/amphetadesk')
-rw-r--r-- | www/amphetadesk/Makefile | 162 | ||||
-rw-r--r-- | www/amphetadesk/distinfo | 2 | ||||
-rw-r--r-- | www/amphetadesk/files/AmphetaDesk | 34 | ||||
-rw-r--r-- | www/amphetadesk/files/patch-AM_DIR | 21 | ||||
-rw-r--r-- | www/amphetadesk/files/patch-defaults | 12 | ||||
-rw-r--r-- | www/amphetadesk/pkg-descr | 8 | ||||
-rw-r--r-- | www/amphetadesk/pkg-plist | 86 |
7 files changed, 325 insertions, 0 deletions
diff --git a/www/amphetadesk/Makefile b/www/amphetadesk/Makefile new file mode 100644 index 000000000000..3f72b1933f73 --- /dev/null +++ b/www/amphetadesk/Makefile @@ -0,0 +1,162 @@ +# Ports collection Makefile for: AmphetaDesk +# Date created: 8 April 2004 +# Whom: kstailey +# +# $FreeBSD$ +# + +PORTNAME= amphetadesk +PORTVERSION= 0.93.1 +CATEGORIES= www perl5 +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} +DISTNAME= ${PORTNAME}-src-v${PORTVERSION} + +MAINTAINER= kstailey@yahoo.com +COMMENT= RSS client that serves HTTP to your local web browser + +BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Compress/Zlib.pm:${PORTSDIR}/archivers/p5-Compress-Zlib \ + ${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 \ + ${SITE_PERL}/${PERL_ARCH}/HTML/Parser.pm:${PORTSDIR}/www/p5-HTML-Parser \ + ${SITE_PERL}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64 \ + ${SITE_PERL}/${PERL_ARCH}/XML/Parser.pm:${PORTSDIR}/textproc/p5-XML-Parser \ + ${SITE_PERL}/HTML/Tagset.pm:${PORTSDIR}/www/p5-HTML-Tagset \ + ${SITE_PERL}/LWP.pm:${PORTSDIR}/www/p5-libwww \ + ${SITE_PERL}/Net/Cmd.pm:${PORTSDIR}/net/p5-Net \ + ${SITE_PERL}/XML/Simple.pm:${PORTSDIR}/textproc/p5-XML-Simple \ + ${SITE_PERL}/Text/Template.pm:${PORTSDIR}/textproc/p5-Text-Template \ + ${SITE_PERL}/URI/URL.pm:${PORTSDIR}/net/p5-URI +RUN_DEPENDS= ${BUILD_DEPENDS} + +USE_PERL5= yes +USE_REINPLACE= yes +NO_BUILD= yes + +post-extract: + @ ${INSTALL_SCRIPT} ${FILESDIR}/AmphetaDesk ${WRKSRC} + +post-patch: + @ ${FIND} ${WRKSRC} -type f | \ + ${XARGS} -n 10 -x ${REINPLACE_CMD} -E \ + -e 's|/usr/bin/perl|${PERL}|' + @ ${REINPLACE_CMD} -E -e 's|%%ADESK%%|${ADESK}|' ${WRKSRC}/AmphetaDesk + +# fit in 80 colums via macro reductions +# srcs +AWRK= ${WRKSRC}/lib/AmphetaDesk +TWRK= ${WRKSRC}/lib/Text +DWRK= ${WRKSRC}/docs +IWRK= ${DWRK}/images +DATA= ${WRKSRC}/data +LIST= ${DATA}/lists/services-channels-recent.xml +TMPL= ${WRKSRC}/templates +DEFL= ${TMPL}/default +GUI= ${DEFL}/gui +DIMG =${DEFL}/images + +# dests +ADESK_DOC= ${PREFIX}/share/doc/AmphetaDesk +ADESK_IMG= ${ADESK_DOC}/images +ADESK= ${SITE_PERL}/AmphetaDesk +ADESK_OS= ${ADESK}/OS +ADESK_DATA= ${ADESK}/data +ADESK_LIST= ${ADESK_DATA}/lists +ADESK_TMPL= ${ADESK}/templates +ADESK_DEFL= ${ADESK_TMPL}/default +ADESK_GUI= ${ADESK_DEFL}/gui +ADESK_DIMG= ${ADESK_DEFL}/images + +do-install: + @ ${MKDIR} ${ADESK} + @ ${MKDIR} ${ADESK_OS} + @ ${MKDIR} ${ADESK_DOC} + @ ${MKDIR} ${ADESK_IMG} + @ ${MKDIR} ${ADESK_LIST} + @ ${MKDIR} ${ADESK_TMPL} + @ ${MKDIR} ${ADESK_DEFL} + @ ${MKDIR} ${ADESK_GUI} + @ ${MKDIR} ${ADESK_DIMG} + @ ${INSTALL_SCRIPT} ${WRKSRC}/AmphetaDesk ${PREFIX}/bin + @ ${INSTALL_SCRIPT} ${WRKSRC}/AmphetaDesk.pl ${ADESK} + @ ${INSTALL_DATA} ${WRKSRC}/lib/AmphetaDesk.pm ${SITE_PERL} + @ ${INSTALL_DATA} ${WRKSRC}/lib/README.txt ${ADESK} + @ ${INSTALL_DATA} ${AWRK}/Channels.pm ${ADESK} + @ ${INSTALL_DATA} ${AWRK}/ChannelsList.pm ${ADESK} + @ ${INSTALL_DATA} ${AWRK}/MyChannels.pm ${ADESK} + @ ${INSTALL_DATA} ${AWRK}/Settings.pm ${ADESK} + @ ${INSTALL_DATA} ${AWRK}/Templates.pm ${ADESK} + @ ${INSTALL_DATA} ${AWRK}/Utilities.pm ${ADESK} + @ ${INSTALL_DATA} ${AWRK}/Versioning.pm ${ADESK} + @ ${INSTALL_DATA} ${AWRK}/WWW.pm ${ADESK} + @ ${INSTALL_DATA} ${AWRK}/WebServer.pm ${ADESK} + @ ${INSTALL_DATA} ${AWRK}/OS/Linux.pm ${ADESK_OS} + @ ${INSTALL_DATA} ${DWRK}/CHANGELOG ${ADESK_DOC} + @ ${INSTALL_DATA} ${DWRK}/LICENSE ${ADESK_DOC} + @ ${INSTALL_DATA} ${DWRK}/README.txt ${ADESK_DOC} + @ ${INSTALL_DATA} ${DWRK}/TODO ${ADESK_DOC} + @ ${INSTALL_DATA} ${DWRK}/build.html ${ADESK_DOC} + @ ${INSTALL_DATA} ${DWRK}/files_and_dirs.html ${ADESK_DOC} + @ ${INSTALL_DATA} ${DWRK}/finding_more.html ${ADESK_DOC} + @ ${INSTALL_DATA} ${DWRK}/give_thanks.html ${ADESK_DOC} + @ ${INSTALL_DATA} ${DWRK}/history.html ${ADESK_DOC} + @ ${INSTALL_DATA} ${DWRK}/index.html ${ADESK_DOC} + @ ${INSTALL_DATA} ${DWRK}/kudos.html ${ADESK_DOC} + @ ${INSTALL_DATA} ${DWRK}/naming.html ${ADESK_DOC} + @ ${INSTALL_DATA} ${DWRK}/news.html ${ADESK_DOC} + @ ${INSTALL_DATA} ${DWRK}/news.xml ${ADESK_DOC} + @ ${INSTALL_DATA} ${DWRK}/screenshots.html ${ADESK_DOC} + @ ${INSTALL_DATA} ${DWRK}/skinning.html ${ADESK_DOC} + @ ${INSTALL_DATA} ${DWRK}/version.txt ${ADESK_DOC} + @ ${INSTALL_DATA} ${DWRK}/website_integration.html ${ADESK_DOC} + @ ${INSTALL_DATA} ${DWRK}/whats_new.html ${ADESK_DOC} + @ ${INSTALL_DATA} ${DWRK}/xml_my_services.html ${ADESK_DOC} + @ ${INSTALL_DATA} ${DWRK}/xml_my_settings.html ${ADESK_DOC} + @ ${INSTALL_DATA} ${DWRK}/xml_services_lists.html ${ADESK_DOC} + @ ${INSTALL_DATA} ${IWRK}/bkgrnd.gif ${ADESK_IMG} + @ ${INSTALL_DATA} ${IWRK}/fyuze.gif ${ADESK_IMG} + @ ${INSTALL_DATA} ${IWRK}/globe.gif ${ADESK_IMG} + @ ${INSTALL_DATA} ${IWRK}/livejournal.jpg ${ADESK_IMG} + @ ${INSTALL_DATA} ${IWRK}/logo-88x31.gif ${ADESK_IMG} + @ ${INSTALL_DATA} ${IWRK}/logo.gif ${ADESK_IMG} + @ ${INSTALL_DATA} ${IWRK}/mailarchive.gif ${ADESK_IMG} + @ ${INSTALL_DATA} ${IWRK}/meerkat.jpg ${ADESK_IMG} + @ ${INSTALL_DATA} ${IWRK}/moreover.gif ${ADESK_IMG} + @ ${INSTALL_DATA} ${IWRK}/network54.gif ${ADESK_IMG} + @ ${INSTALL_DATA} ${IWRK}/newsisfree.gif ${ADESK_IMG} + @ ${INSTALL_DATA} ${IWRK}/nwfusion.gif ${ADESK_IMG} + @ ${INSTALL_DATA} ${IWRK}/quicktopic.gif ${ADESK_IMG} + @ ${INSTALL_DATA} ${IWRK}/racingnews.jpg ${ADESK_IMG} + @ ${INSTALL_DATA} ${IWRK}/sherch.jpg ${ADESK_IMG} + @ ${INSTALL_DATA} ${IWRK}/snewp.jpg ${ADESK_IMG} + @ ${INSTALL_DATA} ${IWRK}/syndic8.gif ${ADESK_IMG} + @ ${INSTALL_DATA} ${IWRK}/xml.gif ${ADESK_IMG} + @ ${INSTALL_DATA} ${IWRK}/xml_pill.gif ${ADESK_IMG} + @ ${INSTALL_DATA} ${IWRK}/xml_radio.gif ${ADESK_IMG} + @ ${INSTALL_DATA} ${IWRK}/yahoogroups.gif ${ADESK_IMG} + @ ${INSTALL_DATA} ${DATA}/README.txt ${ADESK_DATA} + @ ${INSTALL_DATA} ${LIST} ${ADESK_LIST} + @ ${INSTALL_DATA} ${TMPL}/README.txt ${ADESK_TMPL} + @ ${INSTALL_DATA} ${DEFL}/add_a_channel.html ${ADESK_DEFL} + @ ${INSTALL_DATA} ${DEFL}/index.html ${ADESK_DEFL} + @ ${INSTALL_DATA} ${DEFL}/my_channels.html ${ADESK_DEFL} + @ ${INSTALL_DATA} ${DEFL}/my_settings.html ${ADESK_DEFL} + @ ${INSTALL_DATA} ${DEFL}/popup.html ${ADESK_DEFL} + @ ${INSTALL_DATA} ${DEFL}/tpl_footer.html ${ADESK_DEFL} + @ ${INSTALL_DATA} ${DEFL}/tpl_header.html ${ADESK_DEFL} + @ ${INSTALL_DATA} ${GUI}/linux_icon.png ${ADESK_GUI} + @ ${INSTALL_DATA} ${GUI}/linux_logo.png ${ADESK_GUI} + @ ${INSTALL_DATA} ${DIMG}/bkgrnd.gif ${ADESK_DIMG} + @ ${INSTALL_DATA} ${DIMG}/delete.gif ${ADESK_DIMG} + @ ${INSTALL_DATA} ${DIMG}/email.gif ${ADESK_DIMG} + @ ${INSTALL_DATA} ${DIMG}/globe.gif ${ADESK_DIMG} + @ ${INSTALL_DATA} ${DIMG}/logo.gif ${ADESK_DIMG} + @ ${INSTALL_DATA} ${DIMG}/xml.gif ${ADESK_DIMG} + @ ${INSTALL_DATA} ${DIMG}/xml_radio.gif ${ADESK_DIMG} + +.include <bsd.port.pre.mk> + +.if ${PERL_LEVEL} < 500601 +IGNORE= requires perl 5.6.x or later. Install lang/perl5 then try again +.endif + +.include <bsd.port.post.mk> diff --git a/www/amphetadesk/distinfo b/www/amphetadesk/distinfo new file mode 100644 index 000000000000..27dbfd01b061 --- /dev/null +++ b/www/amphetadesk/distinfo @@ -0,0 +1,2 @@ +MD5 (amphetadesk-src-v0.93.1.tar.gz) = 1ea3b033381be6e694d78b183821f90b +SIZE (amphetadesk-src-v0.93.1.tar.gz) = 853503 diff --git a/www/amphetadesk/files/AmphetaDesk b/www/amphetadesk/files/AmphetaDesk new file mode 100644 index 000000000000..28fe5aea8e1d --- /dev/null +++ b/www/amphetadesk/files/AmphetaDesk @@ -0,0 +1,34 @@ +#! /bin/sh + +if [ `id -un` = root ]; then + echo Running AmphetaDesk as root is not recommended. + echo Aborting. + exit 1 +fi + +export AM_DIR=$HOME/.AmphetaDesk + +if [ ! -d $AM_DIR ]; then + if [ -e $AM_DIR ]; then + echo Cannot make $AM_DIR directory for something is in the way. + echo Aborting. + exit 1 + else + mkdir $AM_DIR + if [ ! -d $AM_DIR ]; then + echo Cannot make $AM_DIR directory. + echo Aborting. + exit 1 + fi + fi +fi + +echo Diagnostic output goes to $AM_DIR/AmphetaDesk.log + +cd %%ADESK%% + +if [ ! -f ${AM_DIR}/data/lists/services-channels-recent.xml ] ; then + find data -depth -print | cpio -pdum ${AM_DIR} +fi + +exec ./AmphetaDesk.pl diff --git a/www/amphetadesk/files/patch-AM_DIR b/www/amphetadesk/files/patch-AM_DIR new file mode 100644 index 000000000000..b0fd613c5c82 --- /dev/null +++ b/www/amphetadesk/files/patch-AM_DIR @@ -0,0 +1,21 @@ +--- lib/AmphetaDesk.pm.DIST Tue Nov 5 06:06:05 2002 ++++ lib/AmphetaDesk.pm Thu Apr 8 23:17:19 2004 +@@ -71,7 +71,8 @@ + + # delete the logfile if it's over 250k, + # then reopen it and try to redir STDERR. +- my $logfile = catfile($Bin, "AmphetaDesk.log"); ++ my $envtmp = $ENV{AM_DIR}; ++ my $logfile = catfile($envtmp, "AmphetaDesk.log"); + if (-e $logfile) { unlink $logfile if -s $logfile > 250000; } + open (LOG, ">>$logfile") or die "AmphetaDesk couldn't open the logfile for logging: $!"; + open(STDERR,">&LOG") or die "AmphetaDesk couldn't redirect errors to the logfile: $!"; +@@ -81,7 +82,7 @@ + # load our settings. this routine is located in Settings.pm + # and takes care of determining the OS, finding all the paths + # to the relevant files, as well as making sure everything exists. +- load_my_settings( catfile($Bin, "data", "mySettings.xml") ); ++ load_my_settings( catfile($envtmp, "data", "mySettings.xml") ); + + # load our os specific libraries. if we don't know, use the Linux + # libraries, which currently default to STDOUT for all gui processing. diff --git a/www/amphetadesk/files/patch-defaults b/www/amphetadesk/files/patch-defaults new file mode 100644 index 000000000000..75c5c66b670b --- /dev/null +++ b/www/amphetadesk/files/patch-defaults @@ -0,0 +1,12 @@ +--- lib/AmphetaDesk/Settings.pm.DIST Mon Oct 28 12:40:41 2002 ++++ lib/AmphetaDesk/Settings.pm Thu Apr 8 23:29:33 2004 +@@ -105,7 +105,8 @@ + $SETTINGS{app_contact} = "Morbus Iff"; + $SETTINGS{app_email} = "morbus\@disobey.com"; + $SETTINGS{app_os} = $^O; +- $SETTINGS{dir_data} = catdir($Bin, "data"); ++ my $envtmp = $ENV{AM_DIR}; ++ $SETTINGS{dir_data} = catdir($envtmp, "data"); + $SETTINGS{dir_docs} = catdir($Bin, "docs"); + $SETTINGS{dir_templates} = catdir($Bin, "templates", "default"); + $SETTINGS{dir_gui} = catdir($SETTINGS{dir_templates}, "gui"); diff --git a/www/amphetadesk/pkg-descr b/www/amphetadesk/pkg-descr new file mode 100644 index 000000000000..f196d1c6a03f --- /dev/null +++ b/www/amphetadesk/pkg-descr @@ -0,0 +1,8 @@ +AmphetaDesk is a free, cross platform, open-sourced, syndicated news +aggregator - it obediently sits on your desktop, downloads the latest +news that interests you, and displays them in a quick and easy to use +(and customizable!) webpage. With thousands of channels available, +AmphetaDesk can shave hours off your day - and you'll look smart to +all your friends! Egotism never had it better! + +WWW: http://www.disobey.com/amphetadesk/index.html diff --git a/www/amphetadesk/pkg-plist b/www/amphetadesk/pkg-plist new file mode 100644 index 000000000000..9460ef03f9b8 --- /dev/null +++ b/www/amphetadesk/pkg-plist @@ -0,0 +1,86 @@ +bin/AmphetaDesk +share/doc/AmphetaDesk/CHANGELOG +share/doc/AmphetaDesk/LICENSE +share/doc/AmphetaDesk/README.txt +share/doc/AmphetaDesk/TODO +share/doc/AmphetaDesk/build.html +share/doc/AmphetaDesk/files_and_dirs.html +share/doc/AmphetaDesk/finding_more.html +share/doc/AmphetaDesk/give_thanks.html +share/doc/AmphetaDesk/history.html +share/doc/AmphetaDesk/index.html +share/doc/AmphetaDesk/kudos.html +share/doc/AmphetaDesk/naming.html +share/doc/AmphetaDesk/news.html +share/doc/AmphetaDesk/news.xml +share/doc/AmphetaDesk/screenshots.html +share/doc/AmphetaDesk/skinning.html +share/doc/AmphetaDesk/version.txt +share/doc/AmphetaDesk/website_integration.html +share/doc/AmphetaDesk/whats_new.html +share/doc/AmphetaDesk/xml_my_services.html +share/doc/AmphetaDesk/xml_my_settings.html +share/doc/AmphetaDesk/xml_services_lists.html +share/doc/AmphetaDesk/images/bkgrnd.gif +share/doc/AmphetaDesk/images/fyuze.gif +share/doc/AmphetaDesk/images/globe.gif +share/doc/AmphetaDesk/images/livejournal.jpg +share/doc/AmphetaDesk/images/logo-88x31.gif +share/doc/AmphetaDesk/images/logo.gif +share/doc/AmphetaDesk/images/mailarchive.gif +share/doc/AmphetaDesk/images/meerkat.jpg +share/doc/AmphetaDesk/images/moreover.gif +share/doc/AmphetaDesk/images/network54.gif +share/doc/AmphetaDesk/images/newsisfree.gif +share/doc/AmphetaDesk/images/nwfusion.gif +share/doc/AmphetaDesk/images/quicktopic.gif +share/doc/AmphetaDesk/images/racingnews.jpg +share/doc/AmphetaDesk/images/sherch.jpg +share/doc/AmphetaDesk/images/snewp.jpg +share/doc/AmphetaDesk/images/syndic8.gif +share/doc/AmphetaDesk/images/xml.gif +share/doc/AmphetaDesk/images/xml_pill.gif +share/doc/AmphetaDesk/images/xml_radio.gif +share/doc/AmphetaDesk/images/yahoogroups.gif +%%SITE_PERL%%/AmphetaDesk.pm +%%SITE_PERL%%/AmphetaDesk/AmphetaDesk.pl +%%SITE_PERL%%/AmphetaDesk/README.txt +%%SITE_PERL%%/AmphetaDesk/OS/Linux.pm +%%SITE_PERL%%/AmphetaDesk/Channels.pm +%%SITE_PERL%%/AmphetaDesk/ChannelsList.pm +%%SITE_PERL%%/AmphetaDesk/MyChannels.pm +%%SITE_PERL%%/AmphetaDesk/Settings.pm +%%SITE_PERL%%/AmphetaDesk/Templates.pm +%%SITE_PERL%%/AmphetaDesk/Utilities.pm +%%SITE_PERL%%/AmphetaDesk/Versioning.pm +%%SITE_PERL%%/AmphetaDesk/WWW.pm +%%SITE_PERL%%/AmphetaDesk/WebServer.pm +%%SITE_PERL%%/AmphetaDesk/data/README.txt +%%SITE_PERL%%/AmphetaDesk/data/lists/services-channels-recent.xml +%%SITE_PERL%%/AmphetaDesk/templates/README.txt +%%SITE_PERL%%/AmphetaDesk/templates/default/add_a_channel.html +%%SITE_PERL%%/AmphetaDesk/templates/default/index.html +%%SITE_PERL%%/AmphetaDesk/templates/default/my_channels.html +%%SITE_PERL%%/AmphetaDesk/templates/default/my_settings.html +%%SITE_PERL%%/AmphetaDesk/templates/default/popup.html +%%SITE_PERL%%/AmphetaDesk/templates/default/tpl_footer.html +%%SITE_PERL%%/AmphetaDesk/templates/default/tpl_header.html +%%SITE_PERL%%/AmphetaDesk/templates/default/gui/linux_icon.png +%%SITE_PERL%%/AmphetaDesk/templates/default/gui/linux_logo.png +%%SITE_PERL%%/AmphetaDesk/templates/default/images/bkgrnd.gif +%%SITE_PERL%%/AmphetaDesk/templates/default/images/delete.gif +%%SITE_PERL%%/AmphetaDesk/templates/default/images/email.gif +%%SITE_PERL%%/AmphetaDesk/templates/default/images/globe.gif +%%SITE_PERL%%/AmphetaDesk/templates/default/images/logo.gif +%%SITE_PERL%%/AmphetaDesk/templates/default/images/xml.gif +%%SITE_PERL%%/AmphetaDesk/templates/default/images/xml_radio.gif +@dirrm share/doc/AmphetaDesk/images +@dirrm share/doc/AmphetaDesk +@dirrm %%SITE_PERL%%/AmphetaDesk/OS +@dirrm %%SITE_PERL%%/AmphetaDesk/templates/default/images +@dirrm %%SITE_PERL%%/AmphetaDesk/templates/default/gui +@dirrm %%SITE_PERL%%/AmphetaDesk/templates/default +@dirrm %%SITE_PERL%%/AmphetaDesk/templates +@dirrm %%SITE_PERL%%/AmphetaDesk/data/lists +@dirrm %%SITE_PERL%%/AmphetaDesk/data +@dirrm %%SITE_PERL%%/AmphetaDesk |