Last change
on this file since 5 was
2,
checked in by jbarnold, 18 years ago
|
groupdel not needed after userdel
|
File size:
1.2 KB
|
Rev | Line | |
---|
[1] | 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 | |
---|
| 13 | %description |
---|
| 14 | |
---|
| 15 | scripts.mit.edu AFS administration system |
---|
| 16 | Contains: |
---|
| 17 | - A shell script for renewing the system's AFS credentials <renew> |
---|
| 18 | - A crontab for calling the renew script <crontab> |
---|
| 19 | See http://scripts.mit.edu/wiki for more information. |
---|
| 20 | |
---|
| 21 | %prep |
---|
| 22 | %setup -q -n %{name} |
---|
| 23 | |
---|
| 24 | %build |
---|
| 25 | ./configure |
---|
| 26 | |
---|
| 27 | %install |
---|
| 28 | [ $RPM_BUILD_ROOT != / ] && rm -rf $RPM_BUILD_ROOT |
---|
| 29 | install -D renew $RPM_BUILD_ROOT/home/afsagent/renew |
---|
| 30 | install -D crontab $RPM_BUILD_ROOT/home/afsagent/crontab |
---|
| 31 | |
---|
| 32 | %clean |
---|
| 33 | [ $RPM_BUILD_ROOT != / ] && rm -rf $RPM_BUILD_ROOT |
---|
| 34 | |
---|
| 35 | %files |
---|
| 36 | %defattr(0644, afsagent, afsagent) |
---|
| 37 | /home/afsagent/crontab |
---|
| 38 | %defattr(0755, afsagent, afsagent) |
---|
| 39 | /home/afsagent/renew |
---|
| 40 | |
---|
| 41 | %pre |
---|
| 42 | groupadd -g 101 afsagent |
---|
| 43 | useradd -u 101 -g 101 afsagent |
---|
| 44 | |
---|
| 45 | %post |
---|
| 46 | crontab -u afsagent /home/afsagent/crontab |
---|
| 47 | |
---|
| 48 | %preun |
---|
| 49 | crontab -u afsagent -r |
---|
| 50 | |
---|
| 51 | %postun |
---|
| 52 | userdel -r afsagent |
---|
| 53 | |
---|
| 54 | %changelog |
---|
| 55 | |
---|
| 56 | * Sat Sep 30 2006 Jeff Arnold <jbarnold@MIT.EDU> 0.00 |
---|
| 57 | - initial prerelease version |
---|
Note: See
TracBrowser
for help on using the repository browser.