diff options
author | root <root@rshg054.dnsready.net> | 2013-07-19 01:10:32 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-07-19 01:10:32 -0700 |
commit | 8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch) | |
tree | 03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/ser2net | |
parent | e445a313723389ba9ee1fded025c567dae5b21ea (diff) |
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/ser2net')
-rw-r--r-- | community/ser2net/PKGBUILD | 30 | ||||
-rw-r--r-- | community/ser2net/ser2net.service | 11 |
2 files changed, 41 insertions, 0 deletions
diff --git a/community/ser2net/PKGBUILD b/community/ser2net/PKGBUILD new file mode 100644 index 000000000..a8100ef32 --- /dev/null +++ b/community/ser2net/PKGBUILD @@ -0,0 +1,30 @@ +# $Id: PKGBUILD 91532 2013-05-23 11:17:30Z spupykin $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Contributor: Shinlun Hsieh <yngwiexx@yahoo.com.tw> + +pkgname=ser2net +pkgver=2.8rc3 +pkgrel=3 +pkgdesc="A proxy that allows telnet/tcp connections to be made to serial ports" +arch=(i686 x86_64) +url="http://sourceforge.net/projects/ser2net" +license=('GPL') +depends=('glibc') +backup=(etc/ser2net.conf) +source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver/rc/-rc}.tar.gz + ser2net.service) +md5sums=('bbe95fb557781c314d321356897a50b9' + '9a94f9ba5595359c92d099465ab7c828') + +build() { + cd $srcdir/${pkgname}-${pkgver/rc/-rc} + ./configure --prefix=/usr --sbindir=/usr/bin + make +} + +package() { + cd $srcdir/${pkgname}-${pkgver/rc/-rc} + make DESTDIR=$pkgdir install + install -Dm0644 ser2net.conf $pkgdir/etc/ser2net.conf + install -Dm0644 $srcdir/ser2net.service $pkgdir/usr/lib/systemd/system/ser2net.service +} diff --git a/community/ser2net/ser2net.service b/community/ser2net/ser2net.service new file mode 100644 index 000000000..7bb3137d4 --- /dev/null +++ b/community/ser2net/ser2net.service @@ -0,0 +1,11 @@ +[Unit] +Description=Proxy that allows tcp connections to serial ports +After=syslog.target network.target + +[Service] +Type=forking +ExecStart=/usr/bin/ser2net + +[Install] +WantedBy=multi-user.target + |