]>
Commit | Line | Data |
---|---|---|
714e50f5 | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
714e50f5 MT |
4 | ############################################################################### |
5 | ||
802ea3af | 6 | name = shadow-utils |
d1d527f8 MT |
7 | version = 4.2.1 |
8 | release = 1 | |
d1c9beb3 | 9 | thisapp = shadow-%{version} |
714e50f5 | 10 | |
802ea3af | 11 | maintainer = Michael Tremer <michael.tremer@ipfire.org> |
bf2a8b13 | 12 | groups = System/Base |
802ea3af MT |
13 | url = http://pkg-shadow.alioth.debian.org/ |
14 | license = GPLv2+ | |
15 | summary = Utilities to deal with user accounts. | |
714e50f5 | 16 | |
802ea3af MT |
17 | description |
18 | The shadow-utils package includes the necessary programs | |
19 | for converting UNIX password files to the shadow password | |
20 | format, plus programs for managing user and group accounts. | |
21 | end | |
714e50f5 | 22 | |
802ea3af | 23 | source_dl = http://pkg-shadow.alioth.debian.org/releases/ |
d1d527f8 | 24 | sources = %{thisapp}.tar.xz |
714e50f5 | 25 | |
802ea3af MT |
26 | build |
27 | requires | |
28 | audit-devel | |
d1d527f8 MT |
29 | bison |
30 | flex | |
31 | libacl-devel | |
32 | libattr-devel | |
802ea3af MT |
33 | libcap-devel |
34 | libselinux-devel | |
35 | end | |
714e50f5 | 36 | |
802ea3af | 37 | configure_options += \ |
802ea3af MT |
38 | --enable-shadowgrp \ |
39 | --with-sha-crypt \ | |
40 | --with-selinux \ | |
41 | --without-libcrack \ | |
42 | --without-libpam \ | |
d1d527f8 MT |
43 | --disable-static \ |
44 | --with-group-name-max-length=32 | |
45 | ||
46 | # Generating man pages requires gnome-doc-utils | |
47 | configure_options += --disable-man | |
714e50f5 | 48 | |
802ea3af MT |
49 | prepare_cmds |
50 | # Do not build these files: | |
714e50f5 MT |
51 | for i in nologin chfn chgpasswd chpasswd chsh expiry gpasswd groups login \ |
52 | logoutd passwd su; do \ | |
d1c9beb3 MT |
53 | sed -i "s/$i\$(EXEEXT)//" src/Makefile.in; \ |
54 | find man -name Makefile.in -exec sed -i "s/$i\.1/ /" {} \;; \ | |
714e50f5 | 55 | done |
bbaafb6b | 56 | |
802ea3af MT |
57 | sed -i src/Makefile.in \ |
58 | -e "s/^suidbins.*/# &/" -e "s/^suidubins.*/# &/" | |
714e50f5 | 59 | |
802ea3af MT |
60 | # Do not install korean and zh man pages |
61 | sed -i -e 's/ ko//' -e 's/ zh_CN zh_TW//' man/Makefile.in | |
bd15364e | 62 | |
802ea3af MT |
63 | # Do not install russion man pages - was broken in 4.1.4.3 |
64 | sed -i -e 's/ ru//' man/Makefile.in | |
65 | end | |
bd15364e | 66 | |
802ea3af MT |
67 | install_cmds |
68 | # Remove man pages in other languages | |
69 | rm -rfv %{BUILDROOT}/usr/share/man/{cs,de,fi,fr,hu,id,it,ja,pl,pt_BR,ru,sv,tr} | |
cadb2dbb MT |
70 | |
71 | # Remove duplicate man pages. | |
72 | rm -vf %{BUILDROOT}/usr/share/man/man*/{getspnam,nologin,passwd}.* | |
802ea3af MT |
73 | end |
74 | end | |
a4de5755 | 75 | |
802ea3af MT |
76 | packages |
77 | package %{name} | |
4a1f50e0 | 78 | groups += Base Build |
bf2a8b13 | 79 | |
6738176b MT |
80 | obsoletes += shadow<%{thisver} |
81 | provides += shadow=%{thisver} | |
d1c9beb3 MT |
82 | |
83 | conflicts | |
d1c9beb3 MT |
84 | pam<1.1.0-4 |
85 | end | |
7b28d8be MT |
86 | |
87 | configfiles | |
88 | /etc/default/useradd | |
89 | end | |
802ea3af | 90 | end |
1f9bc2f0 MT |
91 | |
92 | package %{name}-debuginfo | |
93 | template DEBUGINFO | |
94 | end | |
802ea3af | 95 | end |