source: server/fedora/specs/lockeradm.spec @ 11

Last change on this file since 11 was 11, checked in by jbarnold, 16 years ago
Fixed various bugs discovered when testing packages Improved OpenAFS kernel module patch
File size: 1.9 KB
Line 
1Summary: scripts.mit.edu locker administration system
2Group: Applications/System
3Name: lockeradm
4Version: 0.00
5Release: scripts
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}
12
13%description 
14
15scripts.mit.edu locker administration system
16Contains:
17 - Perl script for checking whether a user is a locker admin <admof>
18 - setuid C program used to start a signup request <signup-scripts-frontend>
19 - Perl script that handles signup requests <signup-scripts-backend>
20See http://scripts.mit.edu/wiki for more information.
21
22%prep
23%setup -q -n %{name}
24
25%build
26./configure
27make
28
29%install
30[ $RPM_BUILD_ROOT != / ] && rm -rf $RPM_BUILD_ROOT
31install -D modbashrc $RPM_BUILD_ROOT/usr/local/etc/modbashrc
32install -D modbash $RPM_BUILD_ROOT/usr/local/bin/modbash
33install -D admof $RPM_BUILD_ROOT/usr/local/sbin/admof
34install -D signup-scripts-frontend $RPM_BUILD_ROOT/usr/local/sbin/signup-scripts-frontend
35install -D signup-scripts-backend $RPM_BUILD_ROOT/usr/local/sbin/signup-scripts-backend
36
37%clean
38[ $RPM_BUILD_ROOT != / ] && rm -rf $RPM_BUILD_ROOT
39
40%files
41%defattr(0644, root, root)
42/usr/local/etc/modbashrc
43%defattr(0755, root, root)
44/usr/local/bin/modbash
45/usr/local/sbin/admof
46/usr/local/sbin/signup-scripts-backend
47%defattr(4755, signup, signup)
48/usr/local/sbin/signup-scripts-frontend
49
50%pre
51groupadd signup
52useradd -g signup signup
53
54%post
55cat >>/etc/sudoers <<END
56signup  ALL=(root) NOPASSWD: /usr/sbin/useradd
57signup  ALL=(root) NOPASSWD: /usr/sbin/groupadd
58signup  ALL=(root) NOPASSWD: /usr/sbin/setquota
59END
60chmod 0440 /etc/sudoers
61
62%preun
63touch /etc/sudoers.tmp
64chmod 600 /etc/sudoers.tmp
65grep -v "^signup" /etc/sudoers > /etc/sudoers.tmp
66mv /etc/sudoers.tmp /etc/sudoers
67
68%postun
69userdel -r signup
70
71%changelog
72
73* Sat Sep 30 2006  Jeff Arnold <jbarnold@MIT.EDU> 0.00
74- prerelease
Note: See TracBrowser for help on using the repository browser.