Add package specs for CentOS, Debian and Ubuntu

Related-Bug: #1473893
Related-Bug: #1475726

Change-Id: Ibb0da01904f361ed8acb0edf311d87721928fa07
This commit is contained in:
Vladimir Sharshov (warpc) 2015-07-16 20:28:26 +03:00 committed by Sergey Kulanov
parent e1f209c46a
commit 2e4f17f601
10 changed files with 124 additions and 1 deletions

4
.gitreview Normal file
View File

@ -0,0 +1,4 @@
[gerrit]
host=review.openstack.org
port=29418
project=stackforge/fuel-nailgun-agent.git

5
debian/changelog vendored Normal file
View File

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

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
9

27
debian/control vendored Normal file
View File

@ -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 servers 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

28
debian/copyright vendored Normal file
View File

@ -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.

1
debian/nailgun-agent.cron.d vendored Normal file
View File

@ -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"

12
debian/rules vendored Normal file
View File

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

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
3.0 (quilt)

View File

@ -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"

44
specs/nailgun-agent.spec Normal file
View File

@ -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 servers 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