Last change
on this file since 72 was
36,
checked in by jbarnold, 18 years ago
|
Improved package dependency tracking
|
File size:
1.3 KB
|
Line | |
---|
1 | Summary: scripts.mit.edu AFS administration system |
---|
2 | Group: Applications/System |
---|
3 | Name: tokensys |
---|
4 | Version: 0.00 |
---|
5 | Release: scripts |
---|
6 | Vendor: The scripts.mit.edu Team (scripts@mit.edu) |
---|
7 | URL: http://scripts.mit.edu |
---|
8 | License: GPL |
---|
9 | Source: %{name}.tar.gz |
---|
10 | BuildRoot: %{_tmppath}/%(%{__id_u} -n)-%{name}-%{version}-root |
---|
11 | %define debug_package %{nil} |
---|
12 | Prereq: /usr/kerberos/bin/kinit, /usr/bin/aklog |
---|
13 | |
---|
14 | %description |
---|
15 | |
---|
16 | scripts.mit.edu AFS administration system |
---|
17 | Contains: |
---|
18 | - A shell script for renewing the system's AFS credentials <renew> |
---|
19 | - A crontab for calling the renew script <crontab> |
---|
20 | See http://scripts.mit.edu/wiki for more information. |
---|
21 | |
---|
22 | %prep |
---|
23 | %setup -q -n %{name} |
---|
24 | |
---|
25 | %build |
---|
26 | ./configure --with-kinit=/usr/kerberos/bin/kinit --with-aklog=/usr/bin/aklog |
---|
27 | |
---|
28 | %install |
---|
29 | [ $RPM_BUILD_ROOT != / ] && rm -rf $RPM_BUILD_ROOT |
---|
30 | install -D renew $RPM_BUILD_ROOT/home/afsagent/renew |
---|
31 | install -D crontab $RPM_BUILD_ROOT/home/afsagent/crontab |
---|
32 | |
---|
33 | %clean |
---|
34 | [ $RPM_BUILD_ROOT != / ] && rm -rf $RPM_BUILD_ROOT |
---|
35 | |
---|
36 | %files |
---|
37 | %defattr(0644, afsagent, afsagent) |
---|
38 | /home/afsagent/crontab |
---|
39 | %defattr(0755, afsagent, afsagent) |
---|
40 | /home/afsagent/renew |
---|
41 | |
---|
42 | %pre |
---|
43 | groupadd -g 101 afsagent |
---|
44 | useradd -u 101 -g 101 afsagent |
---|
45 | |
---|
46 | %post |
---|
47 | crontab -u afsagent /home/afsagent/crontab |
---|
48 | |
---|
49 | %preun |
---|
50 | crontab -u afsagent -r |
---|
51 | |
---|
52 | %postun |
---|
53 | userdel -r afsagent |
---|
54 | |
---|
55 | %changelog |
---|
56 | |
---|
57 | * Sat Sep 30 2006 Jeff Arnold <jbarnold@MIT.EDU> 0.00 |
---|
58 | - initial prerelease version |
---|
Note: See
TracBrowser
for help on using the repository browser.