File: trustees.packages

package info (click to toggle)
yada 0.54
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 1,132 kB
  • ctags: 115
  • sloc: perl: 3,905; xml: 1,156; makefile: 12
file content (158 lines) | stat: -rw-r--r-- 4,470 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
# $Id: /local/debian/test/trustees/debian/packages 213 2005-08-16T12:39:18.223436Z dexter  $

# If the debian/rules or debian/control file is missing, rebuild the file:
#
#   $ yada rebuild control
#   $ yada rebuild rules


Source: trustees
Section: misc
Priority: extra
Maintainer: Piotr Roszatycki <dexter@debian.org>
Standards-Version: 3.6.2
Upstream-Source: <USCAN:http://sf.net/trustees/trustees-([0-9.]*)\.tar\.gz>
Home-Page: <URL:http://trustees.sourceforge.net/>
Upstream-Authors: Andrew Ruder <aeruder@ksu.edu>
Description: advanced permission management system for Linux
 Trustees is an advanced linux permission system inspired by Netware.  It
 allows a system administrator to attach "trustees" to any directory or file.
 All subdirectories and files in that directory will also inherit these
 trustees.  Trustee rights can be overridden or added to in subsequent
 directories.
Copyright: GPL
 Copyright (C) V.L. Zavadsky, 1999-2000
 Copyright (C) Andrew Ruder,  2004 (aeruder@ksu.edu)
Build-Depends: dh-kpatches
Build: sh
 CC=${CC:-gcc}
 CFLAGS=${CFLAGS:--Wall -g}
 if [ "${DEB_BUILD_OPTIONS#*noopt}" != "$DEB_BUILD_OPTIONS" ]; then
     CFLAGS="$CFLAGS -O0"
 else
     CFLAGS="$CFLAGS -O2"
 fi
 .
 pushd src
     make CC="$CC"
 popd
 .
 rm -rf modules || true
 mkdir -p modules/trustees/debian
 cp -a include module modules/trustees
 sed 's/^trustees/trustees-source/' debian/changelog > modules/trustees/debian/changelog
 cp -a debian/modules.packages modules/trustees/debian/packages
 pushd modules/trustees
     %{YADA_COMMAND} rebuild
     debian/rules clean
 popd
 tar jcvf trustees.tar.bz2 modules
Clean: sh
 pushd src
     make clean || true
 popd
 rm -rf modules || true
 rm -f trustees.tar.bz2 || true

Package: trustees
Architecture: linux
Suggests: kernel-patch-trustees
Description: advanced permission management system for Linux
 This package provides settrustee utility, which enables new privileges from
 trustee.conf.
Install: sh
 yada install -sbin src/settrustees
 yada install -man debian/man/*.8
Templates:
 Template: trustees/upgrade
 Type: boolean
 Default: true
 _Description: Do you want to upgrade the package?
  New trustees package requires new kernel module. Its source is available in
  kernel-patch-trustees or trustees-source package.
  .
  If you say 'no', this will stop upgrade process of this package.
Config: sh
 if  [ -n "$2" ] && dpkg --compare-versions "$2" lt-nl "3.0"; then
     db_input medium trustees/upgrade || true
     db_go
     db_stop
 fi
Preinst: sh
 . /usr/share/debconf/confmodule
 db_version 2.0 || [ $? -lt 30 ]
 .
 if [ "$1" = "upgrade" ]; then
     if [ -n "$2" ] && dpkg --compare-versions "$2" lt-nl "3.0"; then
         RET=""
         db_get trustees/upgrade || true
         if [ "$RET" = "false" ]; then
             upgrade="yes"
     	 fi
         db_reset trustees/upgrade || true
         db_stop
         if [ "$upgrade" = "yes" ]; then
             exit 1
         fi
     fi
 fi
Init: sh
 start 10 2 3 4 5 .
 .
 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
 NAME=settrustee
 DESC="Linux Trustees (ACL)"
 .
 test -x /sbin/settrustee || exit 0
 test -r /etc/trustee.conf || exit 0
 test -f /proc/trustee/syscall || exit 0
 .
 set -e
 .
 case "$1" in
   start)
 	echo -n "Starting $DESC: "
         /sbin/settrustee -d
 	echo "$NAME."
 	;;
   stop)
 	echo -n "Stopping $DESC: "
         /sbin/settrustee -D
 	echo "$NAME."
 	;;
   reload|force-reload)
 	echo "Reloading $DESC configuration files."
         /sbin/settrustee -d
   ;;
   restart)
 	echo -n "Restarting $DESC: "
         /sbin/settrustee -D
 	sleep 1
         /sbin/settrustee -d
 	echo "$NAME."
 	;;
   *)
 	N=/etc/init.d/$NAME
 	echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
 	exit 1
 	;;
 esac

Package: kernel-patch-trustees
Architecture: all
Depends: ${kpatch:Depends}
Suggests: linux-source, kernel-package
Description: advanced permission management system - kernel patch
 This package contains patches for various kernel versions, to be used
 with the kernel-package tools.
Install: sh
 dh_installkpatches -P$ROOT -p$PACKAGE --mainpackage=$PACKAGE

Package: trustees-source
Architecture: all
Depends: module-assistant, bzip2, yada (>= %{YADA_VERSION})
Description: advanced permission management system - kernel module sources
 This package contains patches for various kernel versions, to be used
 with the kernel-package tools.
Install: sh
 yada install -src trustees.tar.bz2