Skip to content

Commit

Permalink
Debian packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
ioanrogers committed Oct 23, 2011
1 parent 746bedd commit e1c2d6d
Show file tree
Hide file tree
Showing 14 changed files with 89 additions and 4 deletions.
2 changes: 1 addition & 1 deletion MANIFEST
Expand Up @@ -3,9 +3,9 @@ Makefile.PL
README
ignore.txt
examples/etc/sdd.conf
examples/init.d/sdd
lib/Daemon/Shutdown.pm
lib/Daemon/Shutdown/Monitor/hdparm.pm
lib/Daemon/Shutdown/Monitor/smbstatus.pm
t/00-load.t
t/manifest.t
t/pod-coverage.t
Expand Down
5 changes: 5 additions & 0 deletions debian/changelog
@@ -0,0 +1,5 @@
daemon-shutdown (0.07-1) unstable; urgency=low

* Initial Release.

-- Ioan Rogers <ioan.rogers@gmail.com> Sat, 22 Oct 2011 15:16:30 -0700
1 change: 1 addition & 0 deletions debian/compat
@@ -0,0 +1 @@
8
32 changes: 32 additions & 0 deletions debian/control
@@ -0,0 +1,32 @@
Source: daemon-shutdown
Section: perl
Priority: optional
Maintainer: Ioan Rogers <ioan.rogers@gmail.com>
Build-Depends: debhelper (>= 8)
Build-Depends-Indep: libanyevent-perl,
libipc-run-perl,
liblog-log4perl-perl,
libparams-validate-perl,
libuser-perl,
libyaml-perl,
perl
Standards-Version: 3.9.2
Homepage: http://search.cpan.org/dist/Daemon-Shutdown/

Package: daemon-shutdown
Architecture: all
Depends: ${misc:Depends}, ${perl:Depends},
libanyevent-perl,
libipc-run-perl,
liblog-log4perl-perl,
libparams-validate-perl,
libuser-perl,
libyaml-perl,
perl
Recommends: hdparm,
Description: Service to shut down server as soon as it can (to save power).
It is a Linux service to shut down a server down as soon as it can (to save power).
.
A home NAS which is turned on when needed, manually or by wakeonlan
but should shut down automatically when no users are using it any more.

28 changes: 28 additions & 0 deletions debian/copyright
@@ -0,0 +1,28 @@
Format-Specification: http://anonscm.debian.org/viewvc/dep/web/deps/dep5.mdwn?view=markup&pathrev=135
Maintainer: Robin Clarke <perl@robinclarke.net>
Source: http://search.cpan.org/dist/Daemon-Shutdown/
Name: Daemon-Shutdown

Files: *
Copyright: Robin Clarke <perl@robinclarke.net>
License: Artistic or GPL-1+

Files: debian/*
Copyright: 2011, Ioan Rogers <ioan.rogers@gmail.com>
License: Artistic or GPL-1+

License: Artistic
This program is free software; you can redistribute it and/or modify
it under the terms of the Artistic License, which comes with Perl.
.
On Debian systems, the complete text of the Artistic License can be
found in `/usr/share/common-licenses/Artistic'.

License: GPL-1+
This program 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 1, or (at your option)
any later version.
.
On Debian systems, the complete text of version 1 of the GNU General
Public License can be found in `/usr/share/common-licenses/GPL-1'.
1 change: 1 addition & 0 deletions debian/daemon-shutdown.docs
@@ -0,0 +1 @@
README
1 change: 1 addition & 0 deletions debian/daemon-shutdown.examples
@@ -0,0 +1 @@
examples/*
File renamed without changes.
1 change: 1 addition & 0 deletions debian/daemon-shutdown.links
@@ -0,0 +1 @@
lib/systemd/system/daemon-shutdown.service etc/systemd/system/multi-user.target.wants/daemon-shutdown.service
10 changes: 10 additions & 0 deletions debian/daemon-shutdown.logrotate
@@ -0,0 +1,10 @@
/var/log/sdd.log {
daily
missingok
rotate 14
compress
delaycompress
notifempty
create 0640 root adm
sharedscripts
}
5 changes: 5 additions & 0 deletions debian/rules
@@ -0,0 +1,5 @@
#!/usr/bin/make -f

%:
dh_install examples/systemd/daemon-shutdown.service lib/systemd/system/
dh $@
1 change: 1 addition & 0 deletions debian/source/format
@@ -0,0 +1 @@
3.0 (native)
2 changes: 2 additions & 0 deletions debian/watch
@@ -0,0 +1,2 @@
version=3
http://search.cpan.org/dist/Daemon-Shutdown/ .*/Daemon-Shutdown-v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$
Expand Up @@ -2,9 +2,7 @@
Description = Daemon which shuts down box after certain triggers

[Service]
ExecStart = /usr/local/bin/sdd
#User = sdd
#Group = sdd
ExecStart = /usr/bin/sdd

[Install]
WantedBy = multi-user.target
Expand Down

0 comments on commit e1c2d6d

Please sign in to comment.