#
# http://sam.zoy.org/wtfpl/COPYING
-require 'lib/aids'
+require 'aids'
def main(argv)
svc = AIDS::Service.new(argv[1]) if argv[1]
--- /dev/null
+bin/aids /usr/sbin
+man/aids.8 /usr/share/man/man8
--- /dev/null
+aids (0.0-0~0sjm1) UNRELEASED; urgency=low
+
+ * Initial release.
+
+ -- Steven McDonald <steven@steven-mcdonald.id.au> Sat, 13 Oct 2012 18:36:39 +1100
--- /dev/null
+Source: aids
+Section: admin
+Priority: optional
+Maintainer: Steven McDonald <steven@steven-mcdonald.id.au>
+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.
--- /dev/null
+Author: Steven McDonald <steven@steven-mcdonald.id.au>
+Download: http://git.steven-mcdonald.id.au/?p=aids
+
+Files: *
+Copyright: © 2012 Steven McDonald <steven@steven-mcdonald.id.au>
+License; WTFPL version 2
+ DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
+ Version 2, December 2004
+ .
+ Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
+ .
+ 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.
--- /dev/null
+lib/aids.rb /usr/lib/ruby/1.8
--- /dev/null
+#!/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/
--- /dev/null
+3.0 (quilt)
--- /dev/null
+.\" aids.8 - Assistant for Initialisation of Debian Packages user manual
+.\"
+.\" Copyright (C) 2012 Steven McDonald <steven@steven-mcdonald.id.au>
+.\"
+.\" 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)