Browse Source

upgrading package: skydns 20140706 -> 2.0.1d

master
parent
commit
a2e3655d60
  1. 2
      skydns/rc.skydns
  2. 6
      skydns/skydns.patch
  3. 24
      skydns/skydns.spec

2
skydns/rc.skydns

@ -6,7 +6,7 @@
%config
skydns_enable="$openpkg_rc_def"
skydns_listen="127.0.0.1:53"
skydns_etcd_peers="127.0.0.1:4001"
skydns_etcd_peers="127.0.0.1:2379"
skydns_flags=""
skydns_log_prolog="true"
skydns_log_epilog="true"

6
skydns/skydns.patch

@ -1,6 +1,6 @@
Index: gopath/src/github.com/godbus/dbus/transport_unixcred.go
--- gopath/src/github.com/godbus/dbus/transport_unixcred.go.orig 2014-07-06 14:44:14.000000000 +0200
+++ gopath/src/github.com/godbus/dbus/transport_unixcred.go 2014-07-06 20:08:08.697040949 +0200
Index: src/github.com/godbus/dbus/transport_unixcred_linux.go
--- src/github.com/godbus/dbus/transport_unixcred_linux.go.orig 2014-07-06 14:44:14.000000000 +0200
+++ src/github.com/godbus/dbus/transport_unixcred_linux.go 2014-07-06 20:08:08.697040949 +0200
@@ -2,21 +2,7 @@
package dbus

24
skydns/skydns.spec

@ -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} \

Loading…
Cancel
Save