-
Notifications
You must be signed in to change notification settings - Fork 9
/
mrsh.spec.in
88 lines (78 loc) · 2.13 KB
/
mrsh.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
Name: @PACKAGE@
Version: @VERSION@
Release: 1
Epoch: 3
Summary: Remote shell program that uses munge authentication
License: none
Group: System Environment/Base
Source: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}
BuildRequires: ncurses-devel pam-devel munge-devel
BuildRequires: systemd
Requires: munge >= 0.1-0
%description
Remote shell programs that use munge authentication rather than
reserved ports for security.
%package server
Summary: Servers for remote access commands (mrsh, mrlogin, mrcp)
Group: System Environment/Daemons
Requires: xinetd
%description server
Server daemons for remote access commands (mrsh, mrlogin, mrcp)
%package rsh-compat
Summary: rsh compatibility package for mrcp/mrlogin/mrsh
Group: System Environment/Base
Requires: mrsh
Provides: rsh
%description rsh-compat
rsh compatibility package for mrcp/mrlogin/mrsh
%prep
%setup -q
%build
%configure --program-prefix=%{?_program_prefix:%{_program_prefix}} \
%{?_without_pam} \
--with-systemdsystemunitdir=%{_unitdir}
make
%install
rm -rf $RPM_BUILD_ROOT
DESTDIR="$RPM_BUILD_ROOT" make install
%files
%defattr(-,root,root)
%doc NEWS README ChangeLog COPYING DISCLAIMER DISCLAIMER.UC
%{_mandir}/man1/mrcp.1*
%{_mandir}/man1/mrsh.1*
%{_mandir}/man1/mrlogin.1*
%{_bindir}/mrcp
%{_bindir}/mrsh
%{_bindir}/mrlogin
%files server
%defattr(-,root,root)
%{_unitdir}/*
%if %{?_without_pam:0}%{!?_without_pam:1}
%config(noreplace) /etc/pam.d/mrsh
%config(noreplace) /etc/pam.d/mrlogin
%endif
%{_mandir}/man8/in.mrlogind.8*
%{_mandir}/man8/in.mrshd.8*
%{_mandir}/man8/mrlogind.8*
%{_mandir}/man8/mrshd.8*
%{_sbindir}/*
%files rsh-compat
%defattr(-,root,root)
%{_mandir}/man1/rcp.1*
%{_mandir}/man1/rsh.1*
%{_mandir}/man1/rlogin.1*
%{_mandir}/man8/in.rlogind.8*
%{_mandir}/man8/in.rshd.8*
%{_mandir}/man8/rlogind.8*
%{_mandir}/man8/rshd.8*
%{_bindir}/rcp
%{_bindir}/rsh
%{_bindir}/rlogin
%post server
if ! grep "^mshell" /etc/services > /dev/null; then
echo "mshell 21212/tcp # mrshd" >> /etc/services
fi
if ! grep "^mlogin" /etc/services > /dev/null; then
echo "mlogin 541/tcp # mrlogind" >> /etc/services
fi