From 626fc725d66d136ed204837f07b1484977a6065f Mon Sep 17 00:00:00 2001 From: WarheadsSE Date: Wed, 7 Nov 2012 20:38:58 -0500 Subject: [PATCH] alarm/mochad => update for systemd, patch gcc/glibc --- alarm/mochad/PKGBUILD | 32 +++++++++++++++++++++++--------- alarm/mochad/mochad.service | 12 ++++++++++++ 2 files changed, 35 insertions(+), 9 deletions(-) create mode 100644 alarm/mochad/mochad.service diff --git a/alarm/mochad/PKGBUILD b/alarm/mochad/PKGBUILD index dfcb00683..7b4267905 100644 --- a/alarm/mochad/PKGBUILD +++ b/alarm/mochad/PKGBUILD @@ -1,31 +1,45 @@ # ALARM: Kevin Mihelich +# Contributor: Jason Plum plugrel=1 +_github_user=WarheadsSE +_github_repo=mochad +_github_commitID=1c34250ba8a1d739e5ada25965219b4471b9ad18 + + pkgname=mochad 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" -arch=('arm' 'armv7h') +arch=('arm' 'armv6h' 'armv7h') license=('GPL') url="http://mochad.sourceforge.net/" -depends=('libusb') -source=(http://downloads.sf.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz) -md5sums=('e1de0c9e62e10236542e70c2f33aacc2') +depends=('libusbx') +source=(mochad-${pkgver}.tar.gz::https://github.com/${_github_user}/${_github_repo}/tarball/${_github_commitID} + mochad.service) +md5sums=('411f9d5350f48ca49ea8ba55ff5869d2' + 'e62206a10aba4bb4a7404a40a0e0d1b1') build() { - cd "${srcdir}/${pkgname}-${pkgver}" + cd "${srcdir}/${_github_user}-${_github_repo}-${_github_commitID:0:7}" + ./autogen.sh ./configure --prefix=/usr --disable-dependency-tracking make } package() { - cd "${srcdir}/${pkgname}-${pkgver}" + cd "${srcdir}/${_github_user}-${_github_repo}-${_github_commitID:0:7}" make DESTDIR="${pkgdir}" install-binPROGRAMS 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 hotplug2/20-usb-x10 "${pkgdir}/etc/hotplug.d/usb/20-usb-x10" - install -D hotplug2/mochad "${pkgdir}/etc/rc.d/mochad" + # install -D hotplug2/20-usb-x10 "${pkgdir}/etc/hotplug.d/usb/20-usb-x10" + # 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" } diff --git a/alarm/mochad/mochad.service b/alarm/mochad/mochad.service new file mode 100644 index 000000000..cad13977a --- /dev/null +++ b/alarm/mochad/mochad.service @@ -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 +