diff options
author | Simon Gloßner <viper@hometux.de> | 2006-11-07 19:12:09 +0100 |
---|---|---|
committer | Simon Gloßner <viper@hometux.de> | 2006-11-07 19:12:09 +0100 |
commit | 7016047d93d93b4622cd4610e3eec0d9e02f6d12 (patch) | |
tree | 44d2196fbec953e8edc9728b67f52c8d09a6fc5b | |
parent | 69b77cb146d17671cbc896e873b45ec34f669fbb (diff) | |
download | contrib-7016047d93d93b4622cd4610e3eec0d9e02f6d12.tar.gz contrib-7016047d93d93b4622cd4610e3eec0d9e02f6d12.tar.xz |
abook: initial import
-rw-r--r-- | abook/.footprint | 8 | ||||
-rw-r--r-- | abook/.md5sum | 2 | ||||
-rw-r--r-- | abook/Pkgfile | 23 | ||||
-rw-r--r-- | abook/abook-0.5.6.patch | 18 |
4 files changed, 51 insertions, 0 deletions
diff --git a/abook/.footprint b/abook/.footprint new file mode 100644 index 000000000..e1c3c8121 --- /dev/null +++ b/abook/.footprint @@ -0,0 +1,8 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/abook +drwxr-xr-x root/root usr/man/ +drwxr-xr-x root/root usr/man/man1/ +-rw-r--r-- root/root usr/man/man1/abook.1.gz +drwxr-xr-x root/root usr/man/man5/ +-rw-r--r-- root/root usr/man/man5/abookrc.5.gz diff --git a/abook/.md5sum b/abook/.md5sum new file mode 100644 index 000000000..81e6c4d8c --- /dev/null +++ b/abook/.md5sum @@ -0,0 +1,2 @@ +956eeb417b337a6c838c1c625019ea00 abook-0.5.6.patch +87d25df96864a7c507a4965e6d1da49d abook-0.5.6.tar.gz diff --git a/abook/Pkgfile b/abook/Pkgfile new file mode 100644 index 000000000..7ef2db2bc --- /dev/null +++ b/abook/Pkgfile @@ -0,0 +1,23 @@ +# Description: text-based ncurses address book +# URL: http://abook.sourceforge.net/ +# Maintainer: Simon Gloßner, viper at hometux dot de +# Packager: James Mills, prologic at shortcircuit dot net dot au +# Depends on: ncurses, readline + +name=abook +version=0.5.6 +release=3 +source=(http://dl.sourceforge.net/${name}/${name}-${version}.tar.gz \ + $name-$version.patch) + +build() { + cd $name-$version + + patch -p0 < $SRC/$name-$version.patch + + ./configure --prefix=/usr + make + make DESTDIR=$PKG install + + rm -r $PKG/usr/share/ +} diff --git a/abook/abook-0.5.6.patch b/abook/abook-0.5.6.patch new file mode 100644 index 000000000..bacfd55a4 --- /dev/null +++ b/abook/abook-0.5.6.patch @@ -0,0 +1,18 @@ +--- ui.c 10 Apr 2006 08:15:46 -0000 1.57 ++++ ui.c 6 Sep 2006 02:24:33 -0000 1.58 +@@ -569,9 +569,13 @@ + } else { + char *s; + s = ui_readline("/", findstr, MAX_FIELD_LEN - 1, 0); +- strncpy(findstr, s, MAX_FIELD_LEN); +- free(s); + refresh_screen(); ++ if(s == NULL) { ++ return; /* user cancelled (ctrl-G) */ ++ } else { ++ strncpy(findstr, s, MAX_FIELD_LEN); ++ free(s); ++ } + } + + if( (item = find_item(findstr, curitem + !!next, search_fields)) < 0 && |