|
|
|
|
@ -22,8 +22,8 @@
|
|
|
|
|
## |
|
|
|
|
|
|
|
|
|
# package version |
|
|
|
|
%define V_opkg 20140706 |
|
|
|
|
%define V_dist 20140706 |
|
|
|
|
%define V_opkg 2.0.1d |
|
|
|
|
%define V_dist 20150103 |
|
|
|
|
|
|
|
|
|
# package information |
|
|
|
|
Name: skydns |
|
|
|
|
@ -36,7 +36,7 @@ Class: EVAL
|
|
|
|
|
Group: Network |
|
|
|
|
License: MIT |
|
|
|
|
Version: %{V_opkg} |
|
|
|
|
Release: 20140706 |
|
|
|
|
Release: 20150104 |
|
|
|
|
|
|
|
|
|
# list of sources |
|
|
|
|
Source0: http://download.openpkg.org/components/versioned/skydns/skydns-%{V_dist}.tar.gz |
|
|
|
|
@ -48,8 +48,10 @@ BuildPreReq: OpenPKG, openpkg >= 20120101, go
|
|
|
|
|
PreReq: OpenPKG, openpkg >= 20120101, etcd |
|
|
|
|
|
|
|
|
|
%description |
|
|
|
|
An authoritative DNS nameserver that queries an etcd(8) database of |
|
|
|
|
domains and records. |
|
|
|
|
SkyDNS is a distributed service for announcement and discovery of |
|
|
|
|
services built on top of etcd. It utilizes DNS queries to discover |
|
|
|
|
available services. This is done by leveraging SRV records in DNS, |
|
|
|
|
with special meaning given to subdomains, priorities and weights. |
|
|
|
|
|
|
|
|
|
%track |
|
|
|
|
prog skydns = { |
|
|
|
|
@ -64,9 +66,12 @@ PreReq: OpenPKG, openpkg >= 20120101, etcd
|
|
|
|
|
|
|
|
|
|
%build |
|
|
|
|
# build program |
|
|
|
|
rm -rf gopath/src/github.com/coreos/go-systemd/examples |
|
|
|
|
export GOPATH=`pwd`/gopath |
|
|
|
|
go build -x |
|
|
|
|
rm -rf bin pkg |
|
|
|
|
rm -rf src/github.com/coreos/go-systemd/examples |
|
|
|
|
export GOPATH=`pwd` |
|
|
|
|
( cd src/github.com/skynetservices/skydns |
|
|
|
|
go build -x |
|
|
|
|
) || exit $? |
|
|
|
|
|
|
|
|
|
%install |
|
|
|
|
# create directory hierarchy |
|
|
|
|
@ -78,7 +83,8 @@ PreReq: OpenPKG, openpkg >= 20120101, etcd
|
|
|
|
|
|
|
|
|
|
# install program |
|
|
|
|
%{l_shtool} install -c -s -m 755 \ |
|
|
|
|
skydns $RPM_BUILD_ROOT%{l_prefix}/sbin/ |
|
|
|
|
src/github.com/skynetservices/skydns/skydns \ |
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/sbin/ |
|
|
|
|
|
|
|
|
|
# install run-command script |
|
|
|
|
%{l_shtool} install -c -m 755 %{l_value -s -a} \ |
|
|
|
|
|