source: server/fedora/specs/accountadm.spec @ 67

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