1
0
forked from ports/contrib

snownews: Picked up. Updated 1.5.7 -> 1.5.9. Fixed missing dep. Removed snowsync script which requires more perl libraries.

This commit is contained in:
Jose V Beneyto 2008-04-14 01:09:27 +02:00
parent ce1d688479
commit ea9828e096
5 changed files with 87 additions and 19 deletions

View File

@ -1,9 +1,8 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/opml2snow
lrwxrwxrwx root/root usr/bin/snow2opml -> /usr/bin/opml2snow
lrwxrwxrwx root/root usr/bin/snow2opml -> opml2snow
-rwxr-xr-x root/root usr/bin/snownews
-rwxr-xr-x root/root usr/bin/snowsync
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man1/
-rw-r--r-- root/root usr/man/man1/opml2snow.1.gz

View File

@ -1 +1,3 @@
75ffa004e755a233f49b1cdfcd9e3d85 snownews-1.5.7.tar.gz
fa75794a3566205bf5a7005d486d9a21 Makefile.patch
0f3dca85a36386a72033b83a202c559e snownews-1.5.9.tar.gz
912cf0bf15e148e69ae5938d16f1728e snownews.1.in.patch

41
snownews/Makefile.patch Normal file
View File

@ -0,0 +1,41 @@
--- Makefile.old 2008-04-14 00:46:54.000000000 +0200
+++ Makefile 2008-04-14 00:47:16.000000000 +0200
@@ -2,7 +2,7 @@ CC= gcc
MAKE= make
INSTALL= install
LOCALEPATH= $(PREFIX)/share/locale
-MANPATH= $(PREFIX)/share/man
+MANPATH= $(PREFIX)/man
### Compiler/linker flags ###
### Generated via configure ###
@@ -46,14 +46,9 @@ manpages:
cat $(MAN)/snownews.1.in | sed s#PREFIX#$(PREFIX)# | \
sed s/VERSION/$(VERSION)/ > $(MAN)/snownews.1
- for L in $(LANGS); do \
- cat $(MAN)/$$L/snownews.1.$$L.in | sed s#PREFIX#$(PREFIX)# | \
- sed s/VERSION/$(VERSION)/ > $(MAN)/$$L/snownews.1; \
- done
-
### Install ###
-install: install-bin install-locales install-man
+install: install-bin install-man
@echo ""
install-bin: snownews
@@ -82,13 +77,6 @@ install-man: manpages
$(INSTALL) -m 0644 $(MAN)/snownews.1 $(DESTDIR)$(MANPATH)/man1
$(INSTALL) -m 0644 $(MAN)/opml2snow.1 $(DESTDIR)$(MANPATH)/man1
- for L in $(LANGS); do \
- if [ ! -d "$(DESTDIR)$(MANPATH)/$$L/man1" ]; then \
- mkdir -p $(DESTDIR)$(MANPATH)/$$L/man1; \
- fi; \
- $(INSTALL) -m 0644 $(MAN)/$$L/snownews.1 $(DESTDIR)$(MANPATH)/$$L/man1; \
- done
-
### Cleanup ###
clean: clean-bin clean-locales clean-man

View File

@ -1,23 +1,22 @@
# Description: Text mode RSS newsreader for Linux and Unix.
# URL: http://kiza.kcore.de/software/snownews/
# Maintainer: unmaintained
# Packager: James Mills, prologic at shortcircuit dot net dot au
#
# Depends on: ncurses, libxml2, gettext
# URL: http://kiza.kcore.de/software/snownews/
# Maintainer: Jose V Beneyto, sepen at users dot sourceforge dot net
# Packager: James Mills, prologic at shortcircuit dot net dot au
# Depends on: ncurses libxml2 gettext perl
name=snownews
version=1.5.7
version=1.5.9
release=1
source=(http://kiza.kcore.de/software/$name/download/$name-$version.tar.gz)
source=(http://kiza.kcore.de/software/$name/download/$name-$version.tar.gz \
Makefile.patch $name.1.in.patch)
build() {
cd $name-$version
./configure --prefix=/usr
make
make DESTDIR=$PKG install
rm -f $PKG/usr/bin/snow2opml
ln -sf /usr/bin/opml2snow $PKG/usr/bin/snow2opml
rm -rf $PKG/usr/share
rm -rf $PKG/usr/man/{de,it,fr,nl,ru*}
chown -R root:root $PKG
cd $name-$version
patch -p0 -i $SRC/Makefile.patch
patch -p0 -i $SRC/$name.1.in.patch
./configure --prefix=/usr \
--disable-nls \
--charset=UTF-8
make
make DESTDIR=$PKG install
}

View File

@ -0,0 +1,27 @@
--- doc/man/snownews.1.in.old 2008-04-14 01:01:47.000000000 +0200
+++ doc/man/snownews.1.in 2008-04-14 01:02:26.000000000 +0200
@@ -224,24 +224,6 @@ in the main menu.
For further documentation about this feature, please visit the website
.B http://snownews.kcore.de/snowscripts/.
.P
-.B Syncing
-.P
-Snownews comes with an extension program called "snowsync" that allows
-syncing of subscriptions lists between different installations. This little
-helper script is written in Perl and requires the modules XML::LibXML,
-XML::LibXSLT and libwww-perl to be installed. Additionally you will need an
-account on a storage server where the data will be uploaded. The default
-storage server is provided by me, if you want to use it, just mail me and
-I'll give you an account. The uploaded data will be encrypted with GnuPG so
-there are no worries about having sensitive data in your subscription list.
-.P
-Snowsync is invoked with "snowsync remote" to upload data, "local" to download
-it to your local installation and "delete" to remove any information published
-on the storage. See "snowsync --help".
-.P
-If you want to run your own storage server, see the webpage at
-http://kiza.kcore.de/software/nwstorage/.
-.P
.B Snownews is released under the GNU General Public License version 2.
.SH OPTIONS
.B \-\-update or \-u,