File: gadmin-bind.spec

package info (click to toggle)
gadmin-bind 0.2.5-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 4,028 kB
  • ctags: 450
  • sloc: ansic: 7,244; sh: 3,215; makefile: 140
file content (81 lines) | stat: -rw-r--r-- 2,288 bytes parent folder | download | duplicates (2)
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
%define desktop_vendor magnus-swe@telia.com
%{!?_dist: %{expand: %%define dist rhfc12}}

Summary:	GADMIN-BIND -- A GTK+ administation tool for ISC BIND.
Name:		gadmin-bind
Version:	0.2.5
Release:	0.1.%{dist}.nr
License:	GPL
Group:		Applications/System
URL:		http://mange.dynalias.org/linux.html
Source0:	http://mange.dynalias.org/linux/%{name}/%{name}-%{version}.tar.gz
BuildRoot:	%{_builddir}/%{name}-%{version}-root
Provides:	gadmin-bind

%description
GADMIN-BIND is a fast and easy to use GTK+ administration tool for ISC BIND.

%prep
%setup -q
%configure
SYSINIT_START_CMD="chkconfig named on"
SYSINIT_STOP_CMD="chkconfig named off"

%build
%{__make}

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall INSTALL_USER=`id -un` INSTALL_GROUP=`id -gn`

# pam auth
install -d %{buildroot}%{_sysconfdir}/pam.d/
install -d %{buildroot}%{_sysconfdir}/security/console.apps
install -m 644 etc/pam.d/%{name} %{buildroot}%{_sysconfdir}/pam.d/%{name}
install -m 644 etc/security/console.apps/%{name} %{buildroot}%{_sysconfdir}/security/console.apps/%{name}

# desktop entry
install -d %{buildroot}%{_datadir}/applications
install -m 644 desktop/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop

# docs, theres no need to have version, rpm is not fun.
install -d %{buildroot}%{_datadir}/doc/%{name}
install -m 644 README COPYING AUTHORS ChangeLog %{buildroot}%{_datadir}/doc/%{name}/

%find_lang %name

%post 
if test ! -h %{_bindir}/gadmin-bind; then \
ln -s %{_bindir}/consolehelper %{_bindir}/gadmin-bind ; \
fi;

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lang

##%files
%defattr(0755, root, root)
%{_sbindir}/%{name}

%defattr(0644, root, root)
%{_sysconfdir}/pam.d/%{name}
%{_sysconfdir}/security/console.apps/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/*.png
%dir %{_datadir}/pixmaps/%{name}
%{_datadir}/pixmaps/%{name}/*.png

%dir %{_datadir}/doc/%{name}
%{_datadir}/doc/%{name}/README
%{_datadir}/doc/%{name}/COPYING
%{_datadir}/doc/%{name}/AUTHORS
%{_datadir}/doc/%{name}/ChangeLog

%changelog
* Fri Mar 19 2010 Magnus-swe <magnus-swe@telia.com>
- Fixes specfile desktop entry.
- Use correct sysinit satop command.
* Thu Feb 28 2008 Magnus-swe <magnus-swe@telia.com>
- Updated license for ip_handling.[c,h].
- Big thanks to Daniel Baumann!!!