forked from SUSE/caasp-container-manifests
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request SUSE#200 from SUSE/setupPack
- CaaSP
- Loading branch information
Showing
3 changed files
with
84 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
DESTDIR= | ||
ver = $(shell rpm -q --specfile --qf '%{NAME}-%{VERSION}\n' caasp-admin-setup.spec) | ||
|
||
tar: | ||
mkdir -p "$(ver)/usr/sbin" | ||
cp license_MIT.txt "$(ver)/LICENSE" | ||
cp Makefile "$(ver)" | ||
tar -cjf "$(ver).tar.bz2" "$(ver)" | ||
rm -rf "$(ver)" | ||
|
||
install: | ||
mkdir -p "$(DESTDIR)/usr/sbin" | ||
cp /usr/sbin/* "$(DESTDIR)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# | ||
# spec file for package caasp-admin-setup | ||
# | ||
# Copyright (c) 2017 | ||
# | ||
# All modifications and additions to the file contributed by third parties | ||
# remain the property of their copyright owners, unless otherwise agreed | ||
# upon. The license for this file, and modifications and additions to the | ||
# file, is the same license as for the pristine package itself (unless the | ||
# license for the pristine package is not an Open Source License, in which | ||
# case the license is the MIT License). An "Open Source License" is a | ||
# license that conforms to the Open Source Definition (Version 1.9) | ||
# published by the Open Source Initiative. | ||
|
||
# Please submit bugfixes or comments via http://bugs.opensuse.org/ | ||
# | ||
|
||
|
||
Name: caasp-admin-setup | ||
Version: 1.0.0 | ||
Release: 0 | ||
License: MIT | ||
Summary: Setup the CaaSP Admin Node | ||
URL: http://www.github.com:SUSE/pubcloud | ||
Group: Productivity/Networking/Web/Servers | ||
Source0: %{name}-%{version}.tar.bz2 | ||
Requires: caasp-cloud-config | ||
Requires: python3 | ||
Requires: python3-docker | ||
Requires: python3-docopt | ||
Requires: python3-netifaces | ||
Requires: python3-PyYAML | ||
Requires: python3-pyOpenSSL | ||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root | ||
|
||
BuildArch: noarch | ||
|
||
%description | ||
Basic setup of the Admin node for a CaaSP cluster | ||
|
||
%prep | ||
%setup -q | ||
|
||
%build | ||
|
||
%install | ||
make install DESTDIR=%{buildroot} | ||
|
||
%files | ||
%defattr(-,root,root,-) | ||
%doc LICENSE | ||
%{_sbindir}/caasp-admin-setup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
COPYRIGHT 2017 SUSE LLC | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |