Add package specs for CentOS, Debian and Ubuntu
Related-Bug: #1473893 Related-Bug: #1475726 Change-Id: Ibb0da01904f361ed8acb0edf311d87721928fa07
This commit is contained in:
parent
e1f209c46a
commit
2e4f17f601
|
@ -0,0 +1,4 @@
|
|||
[gerrit]
|
||||
host=review.openstack.org
|
||||
port=29418
|
||||
project=stackforge/fuel-nailgun-agent.git
|
|
@ -0,0 +1,5 @@
|
|||
nailgun-agent (7.0.0-1) trusty; urgency=low
|
||||
|
||||
* Update version to 7.0.0
|
||||
|
||||
-- Aleksandra Fedorova <afedorova@mirantis.com> Mon, 08 Jun 2015 18:15:00 +0300
|
|
@ -0,0 +1 @@
|
|||
9
|
|
@ -0,0 +1,27 @@
|
|||
Source: nailgun-agent
|
||||
Section: net
|
||||
Priority: extra
|
||||
Maintainer: PKG OpenStack <openstack-devel@lists.alioth.debian.org>
|
||||
Build-Depends: debhelper (>= 9), openstack-pkg-tools
|
||||
Standards-Version: 3.9.6
|
||||
Homepage: https://github.com/stackforge/fuel-nailgun-agent
|
||||
Vcs-Git: https://github.com/stackforge/fuel-nailgun-agent.git
|
||||
Vcs-Browser: https://github.com/stackforge/fuel-nailgun-agent
|
||||
|
||||
Package: nailgun-agent
|
||||
Architecture: all
|
||||
XB-Ruby-Versions: ${ruby:Versions}
|
||||
Depends: ohai (<< 7),
|
||||
dmidecode,
|
||||
ethtool,
|
||||
ruby-cstruct,
|
||||
ruby-httpclient,
|
||||
ruby-ipaddress,
|
||||
ruby-json,
|
||||
ruby-rethtool,
|
||||
ruby | ruby-interpreter,
|
||||
${misc:Depends}
|
||||
Description: collects the node hardware data and submits it to the Fuel master
|
||||
The nailgun agent collects the server’s hardware information and submits it
|
||||
to Nailgun through the REST API. Also it's responsible for reporting the
|
||||
online/offline status and for initial setup Mcollective service
|
|
@ -0,0 +1,28 @@
|
|||
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: fuel-nailgun-agent
|
||||
Source: https://github.com/stackforge/fuel-nailgun-agent
|
||||
|
||||
Files: debian/*
|
||||
Copyright: (c) 2014, Thomas Goirand <zigo@debian.org>
|
||||
(c) 2014, Mirantis Inc <product@mirantis.com>
|
||||
License: Apache-2
|
||||
|
||||
Files: *
|
||||
Copyright: (c) 2012-2014, Mirantis Inc.
|
||||
License: Apache-2
|
||||
|
||||
License: Apache-2
|
||||
Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
use this file except in compliance with the License. You may obtain a copy of
|
||||
the License at:
|
||||
.
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
.
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
License for the specific language governing permissions and limitations under
|
||||
the License.
|
||||
.
|
||||
On Debian-based systems the full text of the Apache version 2.0 license can be
|
||||
found in /usr/share/common-licenses/Apache-2.0.
|
|
@ -0,0 +1 @@
|
|||
* * * * * root flock -w 0 -o /var/lock/nailgun-agent.lock -c "/usr/bin/nailgun-agent 2>&1 | tee -a /var/log/nailgun-agent.log | /usr/bin/logger -t nailgun-agent"
|
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/make -f
|
||||
|
||||
UPSTREAM_GIT = https://github.com/stackforge/fuel-nailgun-agent.git
|
||||
include /usr/share/openstack-pkg-tools/pkgos.make
|
||||
|
||||
%:
|
||||
dh $@
|
||||
|
||||
override_dh_install:
|
||||
dh_install
|
||||
mkdir -p $(CURDIR)/debian/nailgun-agent/usr/bin
|
||||
cp agent $(CURDIR)/debian/nailgun-agent/usr/bin/nailgun-agent
|
|
@ -0,0 +1 @@
|
|||
3.0 (quilt)
|
|
@ -1 +1 @@
|
|||
* * * * * root flock -w 0 -o /var/lock/agent.lock -c "/opt/nailgun/bin/agent 2>&1 | tee -a /var/log/nailgun-agent.log | /usr/bin/logger -t nailgun-agent"
|
||||
* * * * * root flock -w 0 -o /var/lock/nailgun-agent.lock -c "/usr/bin/nailgun-agent 2>&1 | tee -a /var/log/nailgun-agent.log | /usr/bin/logger -t nailgun-agent"
|
||||
|
|
|
@ -0,0 +1,44 @@
|
|||
%define name nailgun-agent
|
||||
%{!?version: %define version 7.0.0}
|
||||
%{!?release: %define release 1}
|
||||
|
||||
Name: %{name}
|
||||
Version: %{version}
|
||||
Release: %{release}
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
Summary: Nailgun startup agent
|
||||
URL: http://mirantis.com
|
||||
License: ASL 2.0
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
|
||||
Prefix: %{_prefix}
|
||||
BuildArch: noarch
|
||||
|
||||
Requires: dmidecode
|
||||
Requires: ethtool
|
||||
Requires: rubygem-httpclient
|
||||
Requires: rubygem-ipaddress
|
||||
Requires: rubygem-json
|
||||
Requires: rubygem-ohai
|
||||
Requires: rubygem-rethtool
|
||||
Requires: rubygems
|
||||
|
||||
%description
|
||||
The nailgun agent collects the server’s hardware information and submits it
|
||||
to Nailgun through the REST API. Also it's responsible for reporting the
|
||||
online/offline status and for initial setup Mcollective service.
|
||||
|
||||
%prep
|
||||
%setup -cq -n %{name}-%{version}
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/cron.d
|
||||
|
||||
install -m 644 %{_builddir}/%{name}-%{version}/nailgun-agent.cron %{buildroot}%{_sysconfdir}/cron.d/nailgun-agent
|
||||
install -p -D -m 755 %{_builddir}/%{name}-%{version}/agent %{buildroot}%{_bindir}/nailgun-agent
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%{_bindir}/nailgun-agent
|
||||
%{_sysconfdir}/cron.d/nailgun-agent
|
Loading…
Reference in New Issue