source: trunk/server/fedora/specs/tokensys.spec @ 1208

Last change on this file since 1208 was 926, checked in by quentin, 14 years ago
Use an RPM macro instead of sed to specify package versions
File size: 1.5 KB
Line 
1Summary: scripts.mit.edu AFS administration system
2Group: Applications/System
3Name: tokensys
4Version: 0.%{scriptsversion}
5Release: 0
6Vendor: The scripts.mit.edu Team (scripts@mit.edu)
7URL: http://scripts.mit.edu
8License: GPL
9Source: %{name}.tar.gz
10BuildRoot: %{_tmppath}/%(%{__id_u} -n)-%{name}-%{version}-root
11%define debug_package %{nil}
12Prereq: /usr/kerberos/bin/kinit, /usr/bin/aklog
13
14%description
15
16scripts.mit.edu AFS administration system
17Contains:
18 - A shell script for renewing the scripts AFS credentials <renew>
19 - A crontab for calling the renew script <crontab>
20See 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
30install -D renew $RPM_BUILD_ROOT/home/afsagent/renew
31install -D crontab $RPM_BUILD_ROOT/etc/cron.d/afsagent
32
33%clean
34[ $RPM_BUILD_ROOT != / ] && rm -rf $RPM_BUILD_ROOT
35
36%files
37%defattr(0600, root, root)
38/etc/cron.d/afsagent
39%defattr(0755, afsagent, afsagent)
40/home/afsagent/renew
41
42%pre
43groupadd -g 101 afsagent || [ $? -eq 9 ]
44useradd -u 101 -g 101 afsagent || [ $? -eq 9 ]
45
46%postun
47if [ "$1" = "0" ] ; then
48   userdel -r afsagent
49fi
50
51%changelog
52* Wed Dec 31 2008  Quentin Smith <quentin@mit.edu>
53- only remove afsagent user on erase
54- ignore preexisting user
55
56* Wed Apr 11 2007  Joe Presbrey <presbrey@mit.edu>
57- crontab moved system-wide (/etc/cron.d) to isolate from fail-over cron service
58
59* Sat Sep 30 2006  Jeff Arnold <jbarnold@MIT.EDU> 0.00
60- initial prerelease version
Note: See TracBrowser for help on using the repository browser.