From 42f207232beb57c18f67884e7c28424dba3c84c6 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 3 Apr 2014 00:59:26 -0400 Subject: debianization and a wrapper program for /usr/bin --- debian/README | 7 ------- debian/README.Debian | 7 +++++++ debian/changelog | 8 +++++++- debian/compat | 1 + debian/control | 36 ++++++++++++++++++++++++++++++++++++ debian/copyright | 11 +++++++++++ debian/lintian-overrides | 3 +++ debian/propellor.1 | 15 +++++++++++++++ debian/rules | 14 ++++++++++++++ 9 files changed, 94 insertions(+), 8 deletions(-) delete mode 100644 debian/README create mode 100644 debian/README.Debian create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/lintian-overrides create mode 100644 debian/propellor.1 create mode 100755 debian/rules (limited to 'debian') diff --git a/debian/README b/debian/README deleted file mode 100644 index e32a0ee3..00000000 --- a/debian/README +++ /dev/null @@ -1,7 +0,0 @@ -The Debian package of propellor ships its full source code because -propellor is configured by rebuilding it, and embraces modification of any -of the source code. - -/usr/bin/propellor is a wrapper which will set up a propellor git -repository in ~/.propellor/, and run ~/.propellor/propellor if it exists. -Edit ~/.propellor/config.hs to configure it. diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 00000000..e32a0ee3 --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,7 @@ +The Debian package of propellor ships its full source code because +propellor is configured by rebuilding it, and embraces modification of any +of the source code. + +/usr/bin/propellor is a wrapper which will set up a propellor git +repository in ~/.propellor/, and run ~/.propellor/propellor if it exists. +Edit ~/.propellor/config.hs to configure it. diff --git a/debian/changelog b/debian/changelog index 73ace3dd..09d8492d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,10 @@ -propellor (0.2) unstable; urgency=low +propellor (0.2.1) unstable; urgency=medium + + * First release with Debian package. + + -- Joey Hess Thu, 03 Apr 2014 01:43:14 -0400 + +propellor (0.2.0) unstable; urgency=low * Added support for provisioning Docker containers. * Bootstrap deployment now pushes the git repo to the remote host diff --git a/debian/compat b/debian/compat new file mode 100644 index 00000000..ec635144 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 00000000..3f5cb2da --- /dev/null +++ b/debian/control @@ -0,0 +1,36 @@ +Source: propellor +Section: admin +Priority: optional +Build-Depends: + debhelper (>= 9), + ghc (>= 7.4), + cabal-install, + libghc-async-dev, + libghc-missingh-dev, + libghc-hslogger-dev, + libghc-unix-compat-dev, + libghc-ansi-terminal-dev, + libghc-ifelse-dev, +Maintainer: Joey Hess +Standards-Version: 3.9.5 +Vcs-Git: git://git.kitenet.net/propellor +Homepage: http://joeyh.name/code/propellor/ + +Package: propellor +Architecture: any +Section: admin +Depends: ${misc:Depends}, ${shlibs:Depends}, + ghc (>= 7.4), + cabal-install, + libghc-async-dev, + libghc-missingh-dev, + libghc-hslogger-dev, + libghc-unix-compat-dev, + libghc-ansi-terminal-dev, + libghc-ifelse-dev, + git, +Description: property-based host configuration management in haskell + Propellor enures that the system it's run in satisfies a list of + properties, taking action as necessary when a property is not yet met. + . + It is configured using haskell. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 00000000..690a9af8 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,11 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Source: native package + +Files: * +Copyright: © 2010-2014 Joey Hess +License: GPL-3+ + +License: GPL-3+ + The full text of version 3 of the GPL is distributed as GPL in + this package's source, or in /usr/share/common-licenses/GPL-3 on + Debian systems. diff --git a/debian/lintian-overrides b/debian/lintian-overrides new file mode 100644 index 00000000..9071fe0f --- /dev/null +++ b/debian/lintian-overrides @@ -0,0 +1,3 @@ +# These files are used in a git repository that propellor sets up. +propellor: package-contains-vcs-control-file usr/src/propellor/.gitignore +propellor: extra-license-file usr/src/propellor/GPL diff --git a/debian/propellor.1 b/debian/propellor.1 new file mode 100644 index 00000000..3ee3bf4a --- /dev/null +++ b/debian/propellor.1 @@ -0,0 +1,15 @@ +.\" -*- nroff -*- +.TH propellor 1 "Commands" +.SH NAME +propellor \- property-based host configuration management in haskell +.SH SYNOPSIS +.B propellor [options] host +.SH DESCRIPTION +.I propellor +is a property-based host configuration management program written +and configured in haskell. +.PP +The first time you run propellor, it will set up a ~/.propellor/ +repository. Edit ~/.propellor/config.hs to configure it. +.SH AUTHOR +Joey Hess diff --git a/debian/rules b/debian/rules new file mode 100755 index 00000000..dafe10f6 --- /dev/null +++ b/debian/rules @@ -0,0 +1,14 @@ +#!/usr/bin/make -f + +# Avoid using cabal, as it writes to $HOME +export CABAL=./Setup + +%: + dh $@ + +override_dh_auto_build: + $(MAKE) build +override_dh_installdocs: + dh_installdocs README.md TODO +override_dh_installman: + dh_installman debian/propellor.1 -- cgit v1.2.3