aboutsummaryrefslogtreecommitdiffstats
path: root/testing/setserial
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2011-01-04 16:15:40 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2011-01-04 16:15:40 +0000
commit4471db58e5cf82fac824c6649e8e5181c61df28c (patch)
tree374675d7dbb81a436c8f900b4dabef615a9b0c6d /testing/setserial
parentdc1918baac00be158972968a6dda8ff4ad2107f1 (diff)
downloadaports-4471db58e5cf82fac824c6649e8e5181c61df28c.tar.bz2
aports-4471db58e5cf82fac824c6649e8e5181c61df28c.tar.xz
testing/setserial: new aport
Diffstat (limited to 'testing/setserial')
-rw-r--r--testing/setserial/APKBUILD41
-rw-r--r--testing/setserial/setserial.patch28
2 files changed, 69 insertions, 0 deletions
diff --git a/testing/setserial/APKBUILD b/testing/setserial/APKBUILD
new file mode 100644
index 0000000000..3af101e884
--- /dev/null
+++ b/testing/setserial/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
+pkgname=setserial
+pkgver=2.17
+pkgrel=0
+pkgdesc="Serial driver config tool"
+url="http://sourceforge.net/projects/setserial/"
+license="GPL"
+depends=
+makedepends="groff"
+install=
+subpackages="$pkgname-doc"
+source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
+ setserial.patch
+ "
+arch="all"
+
+_builddir="$srcdir"/$pkgname-$pkgver
+
+prepare() {
+ cd "$_builddir"
+ patch -p1 -i "$srcdir"/setserial.patch
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ mkdir -p "$pkgdir"/usr/bin "$pkgdir"/usr/share/man/man8
+ make DESTDIR="$pkgdir" install
+}
+
+md5sums="c4867d72c41564318e0107745eb7a0f2 setserial-2.17.tar.gz
+99919d3be7c1550721494070a7ace66a setserial.patch"
diff --git a/testing/setserial/setserial.patch b/testing/setserial/setserial.patch
new file mode 100644
index 0000000000..3cce1f07d3
--- /dev/null
+++ b/testing/setserial/setserial.patch
@@ -0,0 +1,28 @@
+diff -ur setserial-2.17/Makefile.in setserial-2.17-new/Makefile.in
+--- setserial-2.17/Makefile.in 2000-01-27 16:39:07.000000000 +0100
++++ setserial-2.17-new/Makefile.in 2005-03-09 20:53:31.000000000 +0100
+@@ -17,6 +17,11 @@
+ INCS = -I.
+ TAR = tar
+
++prefix=@prefix@
++exec_prefix=@exec_prefix@
++bindir=@bindir@
++mandir=@mandir@
++
+ all: setserial setserial.cat
+
+ setserial: setserial.c
+@@ -26,9 +31,9 @@
+ nroff -man setserial.8 > setserial.cat
+
+ install: setserial setserial.8
+- $(INSTALL_PROGRAM) setserial $(DESTDIR)/bin
+- $(STRIP) $(DESTDIR)/bin/setserial
+- $(INSTALL_DATA) setserial.8 $(DESTDIR)/usr/man/man8
++ $(INSTALL_PROGRAM) setserial $(DESTDIR)$(bindir)
++ $(STRIP) $(DESTDIR)$(bindir)/setserial
++ $(INSTALL_DATA) setserial.8 $(DESTDIR)$(mandir)/man8
+
+ clean:
+ $(RM) setserial setserial.o setserial.cat *~