This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository mum. See http://git.chorem.org/mum.git commit edca6c9b778a3adbf4456bf6c9d96ee6e43fa795 Author: Alexis Guilbaud <guilbaud@codelutin.com> Date: Fri Jun 12 11:48:34 2015 +0200 added build files for deb and rpm --- debian/changelog | 5 +++ debian/compat | 1 + debian/control | 15 ++++++++ debian/copyright | 38 +++++++++++++++++++ debian/docs | 1 + debian/files | 1 + debian/mum.debhelper.log | 16 ++++++++ debian/mum.substvars | 1 + debian/rules | 99 ++++++++++++++++++++++++++++++++++++++++++++++++ redhat/mum.spec | 70 ++++++++++++++++++++++++++++++++++ 10 files changed, 247 insertions(+) diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..ac79bb3 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +mum (0.1-1) unstable; urgency=low + + * Initial release + + -- Alexis Guilbaud <aguilbaud@codelutin.com> Thu, 21 May 2015 17:25:50 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..45a4fb7 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +8 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..6d05d9d --- /dev/null +++ b/debian/control @@ -0,0 +1,15 @@ +Source: mum +Section: unknown +Priority: extra +Maintainer: Alexis Guilbaud <aguilbaud@codelutin.com> +Build-Depends: debhelper (>= 8.0.0) +Standards-Version: 3.9.3 +Homepage: http://www.chorem.org/projects/mum/ +#Vcs-Git: git://git.debian.org/collab-maint/mum.git +#Vcs-Browser: http://git.debian.org/?p=collab-maint/mum.git;a=summary + +Package: mum +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, python, python2.7-dev, nmap, iputils-ping +Description: Machines Under Monitoring + Simple monitoring through a web interface. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..52c25ab --- /dev/null +++ b/debian/copyright @@ -0,0 +1,38 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: mum +Source: <url://example.com> + +Files: * +Copyright: <years> <put author's name and email here> + <years> <likewise for another author> +License: <special license> + <Put the license of the package here indented by 1 space> + <This follows the format of Description: lines in control file> + . + <Including paragraphs> + +# If you want to use GPL v2 or later for the /debian/* files use +# the following clauses, or change it to suit. Delete these two lines +Files: debian/* +Copyright: 2015 Alexis Guilbaud <aguilbaud@codelutin.com> +License: GPL-2+ + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + . + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/> + . + On Debian systems, the complete text of the GNU General + Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". + +# Please also look if there are files or directories which have a +# different copyright/license attached and list them here. +# Please avoid to pick license terms that are more restrictive than the +# packaged work, as it may make Debian's contributions unacceptable upstream. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..e845566 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README diff --git a/debian/files b/debian/files new file mode 100644 index 0000000..27a2788 --- /dev/null +++ b/debian/files @@ -0,0 +1 @@ +mum_0.1-1_all.deb unknown extra diff --git a/debian/mum.debhelper.log b/debian/mum.debhelper.log new file mode 100644 index 0000000..6560913 --- /dev/null +++ b/debian/mum.debhelper.log @@ -0,0 +1,16 @@ +dh_installdirs +dh_installchangelogs +dh_installdocs +dh_installexamples +dh_install +dh_installman +dh_link +dh_strip +dh_compress +dh_fixperms +dh_installdeb +dh_shlibdeps +dh_gencontrol +dh_md5sums +dh_builddeb +dh_builddeb diff --git a/debian/mum.substvars b/debian/mum.substvars new file mode 100644 index 0000000..abd3ebe --- /dev/null +++ b/debian/mum.substvars @@ -0,0 +1 @@ +misc:Depends= diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..5be2a7b --- /dev/null +++ b/debian/rules @@ -0,0 +1,99 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +app=$(CURDIR)/app +bower_components=$(CURDIR)/bower_components +static=$(CURDIR)/static +views=$(CURDIR)/views +install_script=$(CURDIR)/install.sh +in_venv=$(CURDIR)/in-venv.sh +mum_conf=$(CURDIR)/mum.conf +mum_daemon=$(CURDIR)/mum-daemon.sh +mum_service=$(CURDIR)/mum.service +readme=$(CURDIR)/README +requirements=$(CURDIR)/requirements.txt +run=$(CURDIR)/mum.sh + +DEST_APP=$(CURDIR)/debian/mum/usr/share/pyshared +DEST_CONF=$(CURDIR)/debian/mum/etc/mum +DEST_VAR=$(CURDIR)/debian/mum/var/lib/mum +DEST_BIN=$(CURDIR)/debian/mum/usr/bin +#DEST_INIT_D=$(CURDIR)/debian/mum/etc/init.d +#DEST_SYSTEMD=$(CURDIR)/debian/mum/etc/systemd/system + +build : build-stamp + +build-stamp: + dh_testdir + touch build_stamp + +clean : + dh_testdir + dh_testroot + rm -f build-stamp + dh_clean + +install : build clean $(app) $(bower_components) $(static) $(views) $(install_script) $(in_venv) $(mum_conf) $(readme) $(requirements) $(run) + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + mkdir -p $(DEST_APP) + mkdir -p $(DEST_CONF) + mkdir -p $(DEST_VAR) + mkdir $(DEST_VAR)/keys + + cp -R $(app) $(DEST_APP) + cp -R $(bower_components) $(DEST_APP) + cp -R $(static) $(DEST_APP) + cp -R $(views) $(DEST_APP) + cp $(install_script) $(DEST_APP) + cp $(in_venv) $(DEST_APP) + cp $(mum_conf) $(DEST_CONF) + #@if test -d $(DEST_INIT_D); then \ + # cp $(mum_daemon) $(DEST_INIT_D) + #else :; fi + #@if test -d $(DEST_SYSTEMD); then \ + # cp $(mum_service) $(DEST_SYSTEMD) + #else :; fi + cp $(readme) $(DEST_APP) + cp $(requirements) $(DEST_APP) + cp $(run) $(DEST_APP) + ln -s $(run) $(DEST_BIN) + + find $(DEST_APP)/app -type f -iname "*.pyc" -exec rm -f {} \; + rm -rf $(DEST_APP)/bower_components/jquery + +# Construire ici les fichiers non specifiques a une architecture . +binary-indep : build install + +# Construire ici les fichiers spe cifiques a une architecture . +binary-arch : build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples + dh_install + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary : binary-indep binary-arch +. PHONY : build clean binary-indep binary-arch binary install configure diff --git a/redhat/mum.spec b/redhat/mum.spec new file mode 100644 index 0000000..8e065ae --- /dev/null +++ b/redhat/mum.spec @@ -0,0 +1,70 @@ +%define _topdir /home/aguilbaud/rpmbuild +%define name mum +%define release 1 +%define version 0.1 + +%define DEST_APP /usr/lib/mum +%define DEST_CONF /etc/mum +%define DEST_VAR /var/lib/mum +%define DEST_BIN /usr/bin + +Summary: Machines Under Monitoring +License: GPL +Name: %{name} +Version: %{version} +Release: %{release} +Source: %{name}-%{version}.tar.gz +#Prefix: /usr/lib +Group: System/Tools +Requires: python, nmap + +%description +Simple monitoring through a web interface using Python. +Detection of the distant hosts with nmap, then +autoconfiguration from this detection. + +%prep +%setup -q + +%install +rm -rf %{buildroot} +mkdir -p %{buildroot}/%{DEST_APP} +mkdir -p %{buildroot}/%{DEST_CONF} +mkdir -p %{buildroot}/%{DEST_VAR} +mkdir %{buildroot}/%{DEST_VAR}/keys +mkdir -p %{buildroot}/%{DEST_BIN} + +#cd %{_topdir} +cp -R app %{buildroot}/%{DEST_APP} +cp -R bower_components %{buildroot}/%{DEST_APP} +cp -R static %{buildroot}/%{DEST_APP} +cp -R views %{buildroot}/%{DEST_APP} +cp install.sh %{buildroot}/%{DEST_APP} +cp in-venv.sh %{buildroot}/%{DEST_APP} +cp mum.conf %{buildroot}/%{DEST_CONF} +#cp $(mum_daemon) $(DEST_INIT_D) +cp README %{buildroot}/%{DEST_APP} +cp requirements.txt %{buildroot}/%{DEST_APP} +cp mum.sh %{buildroot}/%{DEST_APP} +ln -s mum.sh %{buildroot}/%{DEST_BIN} + +find %{buildroot}/%{DEST_APP}/app -type f -iname "*.pyc" -exec rm -f {} \; +rm -rf %{buildroot}/%{DEST_APP}/bower_components/jquery + +%files +%defattr(-,root,root) +%{DEST_APP}/app +%{DEST_APP}/bower_components +%{DEST_APP}/static +%{DEST_APP}/views +%{DEST_APP}/install.sh +%{DEST_APP}/in-venv.sh +%{DEST_CONF}/mum.conf +%{DEST_APP}/README +%{DEST_APP}/requirements.txt +%{DEST_APP}/mum.sh +%{DEST_BIN}/mum.sh + +%changelog +* Thu May 21 2015 Alexis Guilbaud <aguilbaud@codelutin.com> - 0.1-1 +- Initial release -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.