Skip to content

Commit 170acc6

Browse files
jdreedgeofft
authored andcommitted
Provide CDBS version of debathena-conffile-example-1.1, and mention in EXAMPLES
1 parent 294ca5c commit 170acc6

10 files changed

Lines changed: 94 additions & 0 deletions

File tree

examples/EXAMPLES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ system that you can start from in designing your own packages.
33

44
debathena-conffile-example-1.0:
55
Displaces a configuration file and provides different configuration
6+
debathena-conffile-example-1.1:
7+
Transforms a configuration file if it exists at build time
68
debathena-bin-example-1.0:
79
Displaces a binary and provides a wrapper script
810
debathena-bin-example-1.1:
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
debathena-conffile-example (1.1) unstable; urgency=low
2+
3+
* Remove /etc/sysctl.d/10-ptrace.conf if it exists. Once again,
4+
convenience trumps security.
5+
6+
-- Jonathan Reed <jdreed@mit.edu> Mon, 25 Feb 2013 15:22:59 -0500
7+
8+
debathena-conffile-example (1.0) unstable; urgency=low
9+
10+
* Initial release.
11+
12+
-- Tim Abbott <tabbott@mit.edu> Sun, 13 Jul 2008 00:37:03 -0400
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
4
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Source: debathena-conffile-example
2+
Section: config
3+
Priority: extra
4+
Maintainer: Jonathan Reed <jdreed@mit.edu>
5+
Build-Depends: cdbs,
6+
debhelper,
7+
dh-buildinfo,
8+
config-package-dev (>= 4.5~)
9+
Standards-Version: 3.8.0
10+
11+
Package: debathena-conffile-example
12+
Architecture: all
13+
Depends: ${misc:Depends}
14+
Provides: ${diverted-files}
15+
Conflicts: ${diverted-files}
16+
Description: Example config-package-dev package
17+
This is an example config-package-dev package.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Source: debathena-conffile-example
2+
Section: config
3+
Priority: extra
4+
Maintainer: Jonathan Reed <jdreed@mit.edu>
5+
Build-Depends: @cdbs@
6+
Standards-Version: 3.8.0
7+
8+
Package: debathena-conffile-example
9+
Architecture: all
10+
Depends: ${misc:Depends}
11+
Provides: ${diverted-files}
12+
Conflicts: ${diverted-files}
13+
Description: Example config-package-dev package
14+
This is an example config-package-dev package.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Example config-package-dev package.
2+
3+
Author: Tim Abbott <tabbott@mit.edu>
4+
5+
Copyright © 2008 Tim Abbott <tabbott@mit.edu>
6+
7+
Permission is hereby granted, free of charge, to any person obtaining
8+
a copy of this software and associated documentation files (the
9+
"Software"), to deal in the Software without restriction, including
10+
without limitation the rights to use, copy, modify, merge, publish,
11+
distribute, sublicense, and/or sell copies of the Software, and to
12+
permit persons to whom the Software is furnished to do so, subject to
13+
the following conditions:
14+
15+
The above copyright notice and this permission notice shall be
16+
included in all copies or substantial portions of the Software.
17+
18+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
21+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
22+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
23+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
24+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
files/* /
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/make -f
2+
3+
DEB_DISPLACE_EXTENSION = .debathena
4+
# Replace some base files with simple replacements.
5+
DEB_DISPLACE_FILES_debathena-conffile-example += \
6+
/etc/issue.net.debathena
7+
# These files are installed via dh_install from the files/ directory
8+
# (see debian/debathena-conffile-example.install)
9+
10+
ifneq ($(wildcard /etc/sysctl.d/10-ptrace.conf),)
11+
DEB_HIDE_FILES_debathena-conffile-example += \
12+
/etc/sysctl.d/10-ptrace.conf
13+
endif
14+
15+
include /usr/share/cdbs/1/rules/debhelper.mk
16+
include /usr/share/cdbs/1/rules/config-package.mk
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
3+
cat
4+
echo
5+
echo "Use of Athena facilities is restricted to authorized holders of Athena"
6+
echo "accounts (MIT students, faculty, staff, and other authorized guests.)"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Debian Linux running debathena-conffile-example version 1.0

0 commit comments

Comments
 (0)