alarm/mochad => update for systemd, patch gcc/glibc

This commit is contained in:
WarheadsSE 2012-11-07 20:38:58 -05:00
parent 134a3195f5
commit 626fc725d6
2 changed files with 35 additions and 9 deletions

View file

@ -1,31 +1,45 @@
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org> # ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# Contributor: Jason Plum <jplum@archlinuxarm.org>
plugrel=1 plugrel=1
_github_user=WarheadsSE
_github_repo=mochad
_github_commitID=1c34250ba8a1d739e5ada25965219b4471b9ad18
pkgname=mochad pkgname=mochad
pkgver=0.1.15 pkgver=0.1.15
pkgrel=1 pkgrel=2
pkgdesc="A Linux TCP gateway daemon for the X10 CM15A RF and PL controller and the CM19A RF controller" pkgdesc="A Linux TCP gateway daemon for the X10 CM15A RF and PL controller and the CM19A RF controller"
arch=('arm' 'armv7h') arch=('arm' 'armv6h' 'armv7h')
license=('GPL') license=('GPL')
url="http://mochad.sourceforge.net/" url="http://mochad.sourceforge.net/"
depends=('libusb') depends=('libusbx')
source=(http://downloads.sf.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz) source=(mochad-${pkgver}.tar.gz::https://github.com/${_github_user}/${_github_repo}/tarball/${_github_commitID}
md5sums=('e1de0c9e62e10236542e70c2f33aacc2') mochad.service)
md5sums=('411f9d5350f48ca49ea8ba55ff5869d2'
'e62206a10aba4bb4a7404a40a0e0d1b1')
build() { build() {
cd "${srcdir}/${pkgname}-${pkgver}" cd "${srcdir}/${_github_user}-${_github_repo}-${_github_commitID:0:7}"
./autogen.sh
./configure --prefix=/usr --disable-dependency-tracking ./configure --prefix=/usr --disable-dependency-tracking
make make
} }
package() { package() {
cd "${srcdir}/${pkgname}-${pkgver}" cd "${srcdir}/${_github_user}-${_github_repo}-${_github_commitID:0:7}"
make DESTDIR="${pkgdir}" install-binPROGRAMS make DESTDIR="${pkgdir}" install-binPROGRAMS
make DESTDIR="${pkgdir}" install-data-am make DESTDIR="${pkgdir}" install-data-am
install -D udev/91-usb-x10-controllers.rules "${pkgdir}/etc/udev/rules.d/91-usb-x10-controllers.rules" install -D udev/91-usb-x10-controllers.rules "${pkgdir}/etc/udev/rules.d/91-usb-x10-controllers.rules"
install -D hotplug2/20-usb-x10 "${pkgdir}/etc/hotplug.d/usb/20-usb-x10" # install -D hotplug2/20-usb-x10 "${pkgdir}/etc/hotplug.d/usb/20-usb-x10"
install -D hotplug2/mochad "${pkgdir}/etc/rc.d/mochad" # install -D hotplug2/mochad "${pkgdir}/etc/rc.d/mochad"
cd "${srcdir}"
mkdir -p "${pkgdir}/usr/lib/systemd/system/"
cp mochad.service "${pkgdir}/usr/lib/systemd/system/mochad.service"
# install -D mochad.rc.d "${pkgdir}/etc/rc.d/mochad"
} }

View file

@ -0,0 +1,12 @@
[Unit]
Description=Mochad X10 Daemon
Wants=network.target
After=network.target
[Service]
Type=forking
ExecStart=/usr/bin/mochad
[Install]
#WantedBy=multi-user.target