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

Last change on this file since 3 was 3, checked in by jbarnold, 18 years ago
Added missing bashrc file; added env cleaning
File size: 1.8 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 admof $RPM_BUILD_ROOT/usr/local/sbin/admof
32install -D signup-scripts-frontend $RPM_BUILD_ROOT/usr/local/sbin/signup-scripts-frontend
33install -D signup-scripts-backend $RPM_BUILD_ROOT/usr/local/sbin/signup-scripts-backend
34install -D bashrc $RPM_BUILD_ROOT/usr/local/etc/bashrc
35
36%clean
37[ $RPM_BUILD_ROOT != / ] && rm -rf $RPM_BUILD_ROOT
38
39%files
40%defattr(0644, root, root)
41/usr/local/etc/bashrc
42%defattr(0755, root, root)
43/usr/local/sbin/admof
44/usr/local/sbin/signup-scripts-backend
45%defattr(4755, signup, signup)
46/usr/local/sbin/signup-scripts-frontend
47
48%pre
49groupadd signup
50useradd -g signup signup
51
52%post
53cat >>/etc/sudoers <<END
54signup  ALL=(root) NOPASSWD: /usr/sbin/useradd
55signup  ALL=(root) NOPASSWD: /usr/sbin/groupadd
56signup  ALL=(root) NOPASSWD: /usr/sbin/edquota
57END
58
59%preun
60touch /etc/sudoers.tmp
61chmod 600 /etc/sudoers.tmp
62grep -v "^signup" /etc/sudoers > /etc/sudoers.tmp
63mv /etc/sudoers.tmp /etc/sudoers
64
65%postun
66userdel -r signup
67
68%changelog
69
70* Sat Sep 30 2006  Jeff Arnold <jbarnold@MIT.EDU> 0.00
71- prerelease
Note: See TracBrowser for help on using the repository browser.