summaryrefslogtreecommitdiffstats
path: root/man/Makefile.am
blob: 83b1d6882e54fc6e5f2fb7458c299170dd7d1d8f (plain)
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
# subdirectories for translated manual pages
if USE_NLS
SUBDIRS = po cs da de es fi fr hu id it ja ko pl pt_BR ru sv tr uk zh_CN zh_TW
else
SUBDIRS =
endif

man_MANS = \
	man1/chage.1 \
	man1/chfn.1 \
	man8/chgpasswd.8 \
	man8/chpasswd.8 \
	man1/chsh.1 \
	man1/expiry.1 \
	man5/faillog.5 \
	man8/faillog.8 \
	man3/getspnam.3 \
	man1/gpasswd.1 \
	man8/groupadd.8 \
	man8/groupdel.8 \
	man8/groupmems.8 \
	man8/groupmod.8 \
	man1/groups.1 \
	man8/grpck.8 \
	man8/grpconv.8 \
	man8/grpunconv.8 \
	man5/gshadow.5 \
	man1/login.1 \
	man5/login.defs.5 \
	man8/logoutd.8 \
	man1/newgrp.1 \
	man8/newusers.8 \
	man8/nologin.8 \
	man1/passwd.1 \
	man5/passwd.5 \
	man8/pwck.8 \
	man8/pwconv.8 \
	man8/pwunconv.8 \
	man1/sg.1 \
	man3/shadow.3 \
	man5/shadow.5 \
	man5/suauth.5 \
	man8/useradd.8 \
	man8/userdel.8 \
	man8/usermod.8 \
	man8/vigr.8 \
	man8/vipw.8

if ENABLE_LASTLOG
man_MANS += man8/lastlog.8
endif

man_nopam = \
	man5/limits.5 \
	man5/login.access.5 \
	man5/porttime.5

if WITH_SU
man_MANS += man1/su.1
endif

if !USE_PAM
man_MANS += $(man_nopam)
endif

man_subids = \
	man1/getsubids.1 \
	man1/newgidmap.1 \
	man1/newuidmap.1 \
	man5/subgid.5 \
	man5/subuid.5

if ENABLE_SUBIDS
man_MANS += $(man_subids)
endif

man_XMANS = \
	chage.1.xml \
	chfn.1.xml \
	chgpasswd.8.xml \
	chpasswd.8.xml \
	chsh.1.xml \
	expiry.1.xml \
	faillog.5.xml \
	faillog.8.xml \
	getsubids.1.xml \
	gpasswd.1.xml \
	groupadd.8.xml \
	groupdel.8.xml \
	groupmems.8.xml \
	groupmod.8.xml \
	groups.1.xml \
	grpck.8.xml \
	gshadow.5.xml \
	limits.5.xml \
	login.1.xml \
	login.access.5.xml \
	login.defs.5.xml \
	logoutd.8.xml \
	newgidmap.1.xml \
	newgrp.1.xml \
	newuidmap.1.xml \
	newusers.8.xml \
	nologin.8.xml \
	passwd.1.xml \
	passwd.5.xml \
	porttime.5.xml \
	pwck.8.xml \
	pwconv.8.xml \
	shadow.3.xml \
	shadow.5.xml \
	sg.1.xml \
	su.1.xml \
	suauth.5.xml \
	subgid.5.xml \
	subuid.5.xml \
	useradd.8.xml \
	userdel.8.xml \
	usermod.8.xml \
	vipw.8.xml

if ENABLE_LASTLOG
man_XMANS += lastlog.8.xml
endif

login_defs_v = \
	BCRYPT_MIN_ROUNDS.xml \
	CHFN_AUTH.xml \
	CHFN_RESTRICT.xml \
	CHSH_AUTH.xml \
	CONSOLE.xml \
	CONSOLE_GROUPS.xml \
	CREATE_HOME.xml \
	DEFAULT_HOME.xml \
	ENCRYPT_METHOD.xml \
	ENV_HZ.xml \
	ENVIRON_FILE.xml \
	ENV_PATH.xml \
	ENV_SUPATH.xml \
	ENV_TZ.xml \
	ERASECHAR.xml \
	FAIL_DELAY.xml \
	FAILLOG_ENAB.xml \
	FAKE_SHELL.xml \
	FTMP_FILE.xml \
	GID_MAX.xml \
	HMAC_CRYPTO_ALGO.xml \
	HOME_MODE.xml \
	HUSHLOGIN_FILE.xml \
	ISSUE_FILE.xml \
	KILLCHAR.xml \
	LASTLOG_ENAB.xml \
	LASTLOG_UID_MAX.xml \
	LOGIN_RETRIES.xml \
	LOGIN_STRING.xml \
	LOGIN_TIMEOUT.xml \
	LOG_OK_LOGINS.xml \
	LOG_UNKFAIL_ENAB.xml \
	MAIL_CHECK_ENAB.xml \
	MAIL_DIR.xml \
	MAX_MEMBERS_PER_GROUP.xml \
	MD5_CRYPT_ENAB.xml \
	MOTD_FILE.xml \
	NOLOGINS_FILE.xml \
	NONEXISTENT.xml \
	OBSCURE_CHECKS_ENAB.xml \
	PASS_ALWAYS_WARN.xml \
	PASS_CHANGE_TRIES.xml \
	PASS_MAX_DAYS.xml \
	PASS_MAX_LEN.xml \
	PASS_MIN_DAYS.xml \
	PASS_WARN_AGE.xml \
	PORTTIME_CHECKS_ENAB.xml \
	QUOTAS_ENAB.xml \
	SHA_CRYPT_MIN_ROUNDS.xml \
	SULOG_FILE.xml \
	SU_NAME.xml \
	SU_WHEEL_ONLY.xml \
	SYSLOG_SG_ENAB.xml \
	SYSLOG_SU_ENAB.xml \
	TCB_AUTH_GROUP.xml \
	TCB_SYMLINKS.xml \
	TTYGROUP.xml \
	TTYTYPE_FILE.xml \
	UID_MAX.xml \
	ULIMIT.xml \
	UMASK.xml \
	USERDEL_CMD.xml \
	USERGROUPS_ENAB.xml \
	USE_TCB.xml \
	SUB_GID_COUNT.xml \
	SUB_UID_COUNT.xml \
	SYS_GID_MAX.xml \
	SYS_UID_MAX.xml \
	YESCRYPT_COST_FACTOR.xml

EXTRA_DIST = \
	$(man_MANS) \
	$(man_XMANS) \
	config.xml \
	$(addprefix login.defs.d/,$(login_defs_v)) \
	man1/id.1 \
	id.1.xml \
	man8/sulogin.8 \
	sulogin.8.xml \
	generate_mans.mak \
	generate_translations.mak \
	its.rules \
	shadow-man.xsl

if USE_PAM
EXTRA_DIST += $(man_nopam)
endif

if !ENABLE_SUBIDS
EXTRA_DIST += $(man_subids)
endif

generate_mans.deps: $(man_XMANS)
	echo "# This file is generated" > $@
	awk 'BEGIN{FS="\"";} /^<!ENTITY .* * SYSTEM ".*">$$/{ f=FILENAME; sub(/.xml/,"",f); print "man" substr(f, length (f)) "/" f ": " $$2 }' $< >> $@

if ENABLE_REGENERATE_MAN

@ENABLE_REGENERATE_MAN_TRUE@include generate_mans.deps

include generate_mans.mak

CLEANFILES = $(man_MANS) man1/id.1 man8/sulogin.8

else
$(man_MANS):
	@echo ""
	@echo "Error: you need to run configure with '--enable-man'"
	@echo "       in order to regenerate man pages."
	@echo ""
endif