Integrate local changes into git
authorSteven McDonald <steven@steven-mcdonald.id.au>
Sun, 14 Oct 2012 02:21:48 +0000 (13:21 +1100)
committerSteven McDonald <steven@steven-mcdonald.id.au>
Sun, 14 Oct 2012 02:21:48 +0000 (13:21 +1100)
bin/aids
debian/aids.install [new file with mode: 0644]
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/libaids-ruby1.8.install [new file with mode: 0644]
debian/rules [new file with mode: 0755]
debian/source/format [new file with mode: 0644]
man/aids.8 [new file with mode: 0644]

index b9aa4a4984e22c97f894cb43930b0186fee749dc..d5869f788394a983907bb7cb4374f551d98d18ef 100755 (executable)
--- a/bin/aids
+++ b/bin/aids
@@ -10,7 +10,7 @@
 #
 #   http://sam.zoy.org/wtfpl/COPYING
 
 #
 #   http://sam.zoy.org/wtfpl/COPYING
 
-require 'lib/aids'
+require 'aids'
 
 def main(argv)
        svc = AIDS::Service.new(argv[1]) if argv[1]
 
 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 (file)
index 0000000..6ddfac4
--- /dev/null
@@ -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 (file)
index 0000000..3cac297
--- /dev/null
@@ -0,0 +1,5 @@
+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
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..45a4fb7
--- /dev/null
@@ -0,0 +1 @@
+8
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..3acbaff
--- /dev/null
@@ -0,0 +1,38 @@
+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.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..4b3547f
--- /dev/null
@@ -0,0 +1,19 @@
+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.
diff --git a/debian/libaids-ruby1.8.install b/debian/libaids-ruby1.8.install
new file mode 100644 (file)
index 0000000..843a372
--- /dev/null
@@ -0,0 +1 @@
+lib/aids.rb    /usr/lib/ruby/1.8
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..6417da0
--- /dev/null
@@ -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 (file)
index 0000000..163aaf8
--- /dev/null
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/man/aids.8 b/man/aids.8
new file mode 100644 (file)
index 0000000..1639761
--- /dev/null
@@ -0,0 +1,65 @@
+.\" 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)