| [1] | 1 | Summary: scripts.mit.edu AFS administration system | 
|---|
|  | 2 | Group: Applications/System | 
|---|
|  | 3 | Name: tokensys | 
|---|
| [926] | 4 | Version: 0.%{scriptsversion} | 
|---|
| [120] | 5 | Release: 0 | 
|---|
| [1] | 6 | Vendor: The scripts.mit.edu Team (scripts@mit.edu) | 
|---|
|  | 7 | URL: http://scripts.mit.edu | 
|---|
|  | 8 | License: GPL | 
|---|
| [89] | 9 | Source: %{name}.tar.gz | 
|---|
| [1] | 10 | BuildRoot: %{_tmppath}/%(%{__id_u} -n)-%{name}-%{version}-root | 
|---|
|  | 11 | %define debug_package %{nil} | 
|---|
| [36] | 12 | Prereq: /usr/kerberos/bin/kinit, /usr/bin/aklog | 
|---|
| [1] | 13 |  | 
|---|
| [89] | 14 | %description | 
|---|
| [1] | 15 |  | 
|---|
|  | 16 | scripts.mit.edu AFS administration system | 
|---|
|  | 17 | Contains: | 
|---|
| [89] | 18 | - A shell script for renewing the scripts AFS credentials <renew> | 
|---|
|  | 19 | - A crontab for calling the renew script <crontab> | 
|---|
| [1] | 20 | See http://scripts.mit.edu/wiki for more information. | 
|---|
|  | 21 |  | 
|---|
|  | 22 | %prep | 
|---|
|  | 23 | %setup -q -n %{name} | 
|---|
|  | 24 |  | 
|---|
|  | 25 | %build | 
|---|
| [36] | 26 | ./configure --with-kinit=/usr/kerberos/bin/kinit --with-aklog=/usr/bin/aklog | 
|---|
| [1] | 27 |  | 
|---|
|  | 28 | %install | 
|---|
|  | 29 | [ $RPM_BUILD_ROOT != / ] && rm -rf $RPM_BUILD_ROOT | 
|---|
|  | 30 | install -D renew $RPM_BUILD_ROOT/home/afsagent/renew | 
|---|
| [282] | 31 | install -D crontab $RPM_BUILD_ROOT/etc/cron.d/afsagent | 
|---|
| [1] | 32 |  | 
|---|
|  | 33 | %clean | 
|---|
|  | 34 | [ $RPM_BUILD_ROOT != / ] && rm -rf $RPM_BUILD_ROOT | 
|---|
|  | 35 |  | 
|---|
|  | 36 | %files | 
|---|
| [282] | 37 | %defattr(0600, root, root) | 
|---|
|  | 38 | /etc/cron.d/afsagent | 
|---|
| [1] | 39 | %defattr(0755, afsagent, afsagent) | 
|---|
|  | 40 | /home/afsagent/renew | 
|---|
|  | 41 |  | 
|---|
|  | 42 | %pre | 
|---|
| [920] | 43 | groupadd -g 101 afsagent || [ $? -eq 9 ] | 
|---|
|  | 44 | useradd -u 101 -g 101 afsagent || [ $? -eq 9 ] | 
|---|
| [1] | 45 |  | 
|---|
|  | 46 | %postun | 
|---|
| [919] | 47 | if [ "$1" = "0" ] ; then | 
|---|
|  | 48 | userdel -r afsagent | 
|---|
|  | 49 | fi | 
|---|
| [1] | 50 |  | 
|---|
|  | 51 | %changelog | 
|---|
| [1594] | 52 | * Tue Aug 17 2010  Geoffrey Thomas <geofft@mit.edu> | 
|---|
|  | 53 | - aklog csail as well | 
|---|
|  | 54 |  | 
|---|
| [919] | 55 | * Wed Dec 31 2008  Quentin Smith <quentin@mit.edu> | 
|---|
|  | 56 | - only remove afsagent user on erase | 
|---|
| [920] | 57 | - ignore preexisting user | 
|---|
| [1] | 58 |  | 
|---|
| [282] | 59 | * Wed Apr 11 2007  Joe Presbrey <presbrey@mit.edu> | 
|---|
|  | 60 | - crontab moved system-wide (/etc/cron.d) to isolate from fail-over cron service | 
|---|
|  | 61 |  | 
|---|
| [1] | 62 | * Sat Sep 30 2006  Jeff Arnold <jbarnold@MIT.EDU> 0.00 | 
|---|
|  | 63 | - initial prerelease version | 
|---|