From 4eff9f266269e6d82fe7aad9052fe96fde8e0651 Mon Sep 17 00:00:00 2001 From: Steven McDonald Date: Sun, 14 Oct 2012 13:21:48 +1100 Subject: [PATCH] Integrate local changes into git --- bin/aids | 2 +- debian/aids.install | 2 ++ debian/changelog | 5 +++ debian/compat | 1 + debian/control | 38 ++++++++++++++++++++ debian/copyright | 19 ++++++++++ debian/libaids-ruby1.8.install | 1 + debian/rules | 9 +++++ debian/source/format | 1 + man/aids.8 | 65 ++++++++++++++++++++++++++++++++++ 10 files changed, 142 insertions(+), 1 deletion(-) create mode 100644 debian/aids.install create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/libaids-ruby1.8.install create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 man/aids.8 diff --git a/bin/aids b/bin/aids index b9aa4a4..d5869f7 100755 --- a/bin/aids +++ b/bin/aids @@ -10,7 +10,7 @@ # # http://sam.zoy.org/wtfpl/COPYING -require 'lib/aids' +require 'aids' def main(argv) svc = AIDS::Service.new(argv[1]) if argv[1] diff --git a/debian/aids.install b/debian/aids.install new file mode 100644 index 0000000..6ddfac4 --- /dev/null +++ b/debian/aids.install @@ -0,0 +1,2 @@ +bin/aids /usr/sbin +man/aids.8 /usr/share/man/man8 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..3cac297 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +aids (0.0-0~0sjm1) UNRELEASED; urgency=low + + * Initial release. + + -- Steven McDonald Sat, 13 Oct 2012 18:36:39 +1100 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..3acbaff --- /dev/null +++ b/debian/control @@ -0,0 +1,38 @@ +Source: aids +Section: admin +Priority: optional +Maintainer: Steven McDonald +Standards-Version: 3.9.3 +Build-Depends: debhelper (>= 8) +Homepage: http://git.steven-mcdonald.id.au/?p=aids.git +Vcs-Git: git://git.steven-mcdonald.id.au/aids.git +Vcs-Browser: http://git.steven-mcdonald.id.au/?p=aids.git + +Package: aids +Architecture: all +Depends: ${misc:Depends}, libaids-ruby1.8, ruby1.8 +Description: Debian service management utility + AIDS (Assistant for Initialisation of Debian Services) is a tool for + management of Debian services, intended to be simple to use, with + potentially complex policies on how to enable/disable services hidden + away from the user. + . + The primary target use case is for automation that needs to simply + enable or disable a service without caring how this is done. + . + This package contains the command-line interface to AIDS. + +Package: libaids-ruby1.8 +Section: ruby +Architecture: all +Depends: ${misc:Depends}, ruby1.8 +Description: Debian service management utility + AIDS (Assistant for Initialisation of Debian Services) is a tool for + management of Debian services, intended to be simple to use, with + potentially complex policies on how to enable/disable services hidden + away from the user. + . + The primary target use case is for automation that needs to simply + enable or disable a service without caring how this is done. + . + This package contains the AIDS module for Ruby 1.8. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..4b3547f --- /dev/null +++ b/debian/copyright @@ -0,0 +1,19 @@ +Author: Steven McDonald +Download: http://git.steven-mcdonald.id.au/?p=aids + +Files: * +Copyright: © 2012 Steven McDonald +License; WTFPL version 2 + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + . + Copyright (C) 2004 Sam Hocevar + . + Everyone is permitted to copy and distribute verbatim or modified + copies of this license document, and changing it is allowed as long + as the name is changed. + . + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + . + 0. You just DO WHAT THE FUCK YOU WANT TO. diff --git a/debian/libaids-ruby1.8.install b/debian/libaids-ruby1.8.install new file mode 100644 index 0000000..843a372 --- /dev/null +++ b/debian/libaids-ruby1.8.install @@ -0,0 +1 @@ +lib/aids.rb /usr/lib/ruby/1.8 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..6417da0 --- /dev/null +++ b/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f + +%: + dh $@ + +#binary-indep: +# mkdir -p debian/aids/usr/bin/ debian/libaids-ruby1.8/usr/lib/ruby/1.8/ +# cp bin/aids debian/aids/usr/bin/ +# cp lib/aids.rb debian/libaids-ruby1.8/usr/lib/ruby/1.8/ diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/man/aids.8 b/man/aids.8 new file mode 100644 index 0000000..1639761 --- /dev/null +++ b/man/aids.8 @@ -0,0 +1,65 @@ +.\" aids.8 - Assistant for Initialisation of Debian Packages user manual +.\" +.\" Copyright (C) 2012 Steven McDonald +.\" +.\" This program is free software. It comes without any warranty, to the +.\" extent permitted by applicable law. You can redistribute it and/or +.\" modify it under the terms of the Do What The Fuck You Want To Public +.\" License, Version 2, as published by Sam Hocevar. See the file COPYING +.\" in the root of this program's source distribution for details, or: +.\" +.\" http://sam.zoy.org/wtfpl/COPYING +.\" +.TH aids 8 "2012\-10\-14" AIDS "AIDS User Manual" +.SH NAME +aids \- assistant for initialisation of debian packages +.SH SYNOPSIS +.B aids +.I command +.RI [ service ] +.SH DESCRIPTION +.B aids +provides a simple interface for managing Debian services. The policy regarding how to enable/disable services is defined within AIDS itself, and abstracted into three commands -- +.BR enable , +.B disable +and +.BR list . +.SH COMMANDS +.TP +.B enable +.PD +Configures +.I service +to start at boot time. +.TP +.B disable +.PD +Configures +.I service +not to start at boot time. +.TP +.B list +.PD +Show the current runlevel configuration for +.I service +, using +.BR chkconfig (8) +compatible output. +If no +.I service +is specified, show the current configuration for all services. +.SH EXIT STATUS +.B aids +returns 0 on success, or 1 on error. +.SH EXAMPLE +.TP +aids enable frob +.PD +Enables the +.B frob +service to start at boot time. +.SH SEE ALSO +.BR update-rc.d (8), +.BR insserv (8), +.BR sysv-rc-conf (8), +.BR init (8) -- 2.30.2