diff options
author | Thomas Fanninger | 2017-02-11 12:03:57 +0100 |
---|---|---|
committer | Thomas Fanninger | 2017-02-11 12:03:57 +0100 |
commit | 92d87bd23b03b367e7b72aa68fea30207c86a9cf (patch) | |
tree | a3bdd7571824d1ffa18a69c56744abd4b3f4d695 | |
download | aur-92d87bd23b03b367e7b72aa68fea30207c86a9cf.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 29 | ||||
-rw-r--r-- | PKGBUILD | 50 | ||||
-rw-r--r-- | config.toml | 4 | ||||
-rw-r--r-- | go-wol-server.service | 9 |
4 files changed, 92 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..8250a7600568 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,29 @@ +# Generated by mksrcinfo v8 +# Sat Feb 11 11:03:10 UTC 2017 +pkgbase = go-wol-server-git + pkgdesc = Wake on Lan server + pkgver = 0.1 + pkgrel = 1 + epoch = 1 + arch = i686 + arch = x86_64 + arch = armv6h + arch = armv7h + license = MIT + makedepends = go>=1.2 + makedepends = git + makedepends = patch + provides = go-wol-server + options = !strip + options = !emptydirs + backup = etc/go-wol-server/config.toml + backup = etc/go-wol-server/templates/footer.tmpl + backup = etc/go-wol-server/templates/header.tmpl + backup = etc/go-wol-server/templates/index.tmpl + source = go-wol-server.service + source = wol-server::git+https://github.com/qybl/wol-server.git + sha512sums = SKIP + sha512sums = SKIP + +pkgname = go-wol-server-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f10a74c2b5d9 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,50 @@ +# Maintainer: Thomas Fanninger <thomas@fanninger.at> + +pkgname=go-wol-server-git +_pkgname=wol-server +pkgver=0.1 +pkgrel=1 +epoch=1 +pkgdesc="Wake on Lan server" +arch=('i686' 'x86_64' 'armv6h' 'armv7h') +license=('MIT') +depends=() +optdepends=() +provides=('go-wol-server') +makedepends=('go>=1.2' 'git' 'patch') +conflicts=() +options=('!strip' '!emptydirs') +backup=('etc/go-wol-server/config.toml' + 'etc/go-wol-server/templates/footer.tmpl' + 'etc/go-wol-server/templates/header.tmpl' + 'etc/go-wol-server/templates/index.tmpl') + +_gourl=github.com/qybl +source=('go-wol-server.service' + "${_pkgname}::git+https://${_gourl}/${_pkgname}.git") + +sha512sums=('SKIP' + 'SKIP') + +prepare() { + mkdir -p "${srcdir}/src/${_gourl}" + mv "${_pkgname}" "${srcdir}/src/${_gourl}" + msg2 "go get" + GOPATH="${srcdir}" go get "${_gourl}/${_pkgname}" +} + +build() { + msg2 "Build program" + cd ${srcdir}/src/${_gourl}/${_pkgname} + GOPATH="${srcdir}" go fix + GOPATH="${srcdir}" go build +} + +package() { + install -D -m 0755 "${srcdir}/src/${_gourl}/${_pkgname}/${_pkgname}" "${pkgdir}/usr/share/${pkgname}/${pkgname}" + + install -D -m 0600 "${srcdir}/src/${_gourl}/${_pkgname}/config.toml" "$pkgdir/etc/${pkgname}/config.toml" + cp -r "${srcdir}/src/${_gourl}/${_pkgname}/templates" "${pkgdir}/etc/${pkgname}/templates" + + install -D -m 0644 "${srcdir}/${pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}.service" +} diff --git a/config.toml b/config.toml new file mode 100644 index 000000000000..91f723cd68ea --- /dev/null +++ b/config.toml @@ -0,0 +1,4 @@ +[workstations] + [workstations.vaih-workstation-1] + MAC = "14:da:e9:de:d5:0b" + IP = "100.126.240.33"
\ No newline at end of file diff --git a/go-wol-server.service b/go-wol-server.service new file mode 100644 index 000000000000..c8701ac386da --- /dev/null +++ b/go-wol-server.service @@ -0,0 +1,9 @@ +[Unit] +Description=Wake on Lan Service + +[Service] +TimeoutStartSec=0 +ExecStart=/usr/sbin/go-wol-server -configFile=/etc/go-wol-server/config.toml -templateDir=/etc/go-wol-server/templates/ -listenPort=8080 + +[Install] +WantedBy=multi-user.target
\ No newline at end of file |