-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoksh.spec
57 lines (38 loc) · 1018 Bytes
/
oksh.spec
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
Name: oksh
Version: 0.5.0
Release: 1%{?dist}
Summary: OpenBSD KSH for RHEL 6
Group: Applications/Shells
License: BSD
URL: http://www.connochaetos.org/oksh/
Distribution: gwurr3
Vendor: gwurr3
Packager: Glenn Wurr III <[email protected]>
Source0: http://www.connochaetos.org/oksh/oksh-0.5.0.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/oksh-XXXXXX)
BuildRequires: gcc
Requires: bash
%description
A package of OpenBSD's KSH ported to Linux
%prep
%setup -q
%build
./configure --prefix=/ --exec-prefix=/usr
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make install bindir=%{buildroot}/bin mandir=%{buildroot}/usr/man/man1
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc
%verify(mode md5 size mtime) /bin/ksh
%verify(mode md5 size mtime) /usr/man/*
%changelog
* Sun Sep 28 2015 Glenn Wurr III <[email protected]> 0.5.0-1-
First Build
%post
echo "/bin/ksh" >> /etc/shells
%postun
sed -i '/ksh/d' /etc/shells