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

Last change on this file since 89 was 89, checked in by tabbott, 18 years ago
Modifying Fedora specfiles to use the make install targets created by previous checkin (except for tokensys, where it seems weird), and fixing stupid errors in the Makefile.ins. While I was at it, I fixed some trailing whitespace in the specfiles.
File size: 1.7 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
32make install DESTDIR=$RPM_BUILD_ROOT prefix=/usr/local
33
34%clean
35[ $RPM_BUILD_ROOT != / ] && rm -rf $RPM_BUILD_ROOT
36
37%files
38%defattr(0644, root, root)
39/usr/local/etc/modbashrc
40%defattr(0755, root, root)
41/usr/local/bin/modbash
42/usr/local/sbin/admof
43/usr/local/sbin/signup-scripts-backend
44%defattr(4755, signup, signup)
45/usr/local/sbin/signup-scripts-frontend
46
47%pre
48groupadd signup
49useradd -g signup signup
50
51%post
52cat >>/etc/sudoers <<END
53signup  ALL=(root) NOPASSWD: /usr/sbin/useradd
54signup  ALL=(root) NOPASSWD: /usr/sbin/groupadd
55signup  ALL=(root) NOPASSWD: /usr/sbin/setquota
56END
57chmod 0440 /etc/sudoers
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.