File: nss_updatedb.spec

package info (click to toggle)
nss-updatedb 10-2
  • links: PTS
  • area: main
  • in suites: squeeze, wheezy
  • size: 696 kB
  • ctags: 66
  • sloc: sh: 5,802; ansic: 732; makefile: 54
file content (41 lines) | stat: -rw-r--r-- 876 bytes parent folder | download | duplicates (3)
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
Summary: NSS update DB tool
Name: nss_updatedb
Version: 10
Release: 1
Source0: %{name}.tgz
Patch1: bugfix_out-of-mem.patch
URL: http://www.padl.com/
Copyright: GPL
Group: System Environment/Base
BuildRoot: %{_tmppath}/%{name}-root
Requires: nss_db
BuildRequires: gzip make pam-modules tar gcc glibc-devel binutils db-devel patch
Obsoletes: nss_updatedb

%description
The nss_updatedb tool synchronizes nameservice information
with a local Berkeley DB cache.

%prep
%setup
%patch1 -p1

%build
./configure
make

%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/sbin

install -m 700 nss_updatedb $RPM_BUILD_ROOT/sbin

chmod 755 $RPM_BUILD_ROOT/sbin/nss_updatedb

%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%attr(0755,root,root) /sbin/nss_updatedb
%doc AUTHORS NEWS COPYING README ChangeLog