summaryrefslogtreecommitdiff
path: root/sysutils/bsdconfig/Makefile
blob: a1b2305aa8ce8f81d8faadb6a54ed292d5fe793c (plain) (blame)
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
# Created by: Devin Teske <dteske@FreeBSD.org>
# $FreeBSD$

PORTNAME=	bsdconfig
PORTVERSION=	0.9.0
CATEGORIES=	sysutils
MASTER_SITES=	http://druidbsd.sourceforge.net/download/bsdconfig/
DISTNAME=	${PORTNAME}.130705
EXTRACT_SUFX=	.txz

PATCH_SITES=	${MASTER_SITES}
PATCHFILES=	${DISTNAME}-${PORTVERSION}.diff.gz

MAINTAINER=	dteske@FreeBSD.org
COMMENT=	Utility to configure various aspects of FreeBSD

LICENSE=	BSD

NO_WRKSUBDIR=	yes

BSDCFG_LIBE=	libexec/${PORTNAME}
BSDCFG_SHARE=	share/${PORTNAME}

# Default man(1) section path-prefix
MANDIR?=	${MANPREFIX}/man/man
MAN8=		${PORTNAME}.8
MANCOMPRESSED=	yes

PLIST_FILES=	\
	sbin/${PORTNAME}                                                     \
	share/examples/${PORTNAME}/browse_packages.sh                        \
	share/examples/${PORTNAME}/bsdconfigrc                               \
	${BSDCFG_LIBE}/020.docsinstall/INDEX                                 \
	${BSDCFG_LIBE}/020.docsinstall/USAGE                                 \
	${BSDCFG_LIBE}/020.docsinstall/docsinstall                           \
	${BSDCFG_LIBE}/020.docsinstall/include/messages.subr                 \
	${BSDCFG_LIBE}/030.packages/INDEX                                    \
	${BSDCFG_LIBE}/030.packages/USAGE                                    \
	${BSDCFG_LIBE}/030.packages/include/messages.subr                    \
	${BSDCFG_LIBE}/030.packages/packages                                 \
	${BSDCFG_LIBE}/040.password/INDEX                                    \
	${BSDCFG_LIBE}/040.password/USAGE                                    \
	${BSDCFG_LIBE}/040.password/include/messages.subr                    \
	${BSDCFG_LIBE}/040.password/password                                 \
	${BSDCFG_LIBE}/050.diskmgmt/INDEX                                    \
	${BSDCFG_LIBE}/050.diskmgmt/USAGE                                    \
	${BSDCFG_LIBE}/050.diskmgmt/diskmgmt                                 \
	${BSDCFG_LIBE}/050.diskmgmt/include/messages.subr                    \
	${BSDCFG_LIBE}/070.usermgmt/INDEX                                    \
	${BSDCFG_LIBE}/070.usermgmt/USAGE                                    \
	${BSDCFG_LIBE}/070.usermgmt/groupadd                                 \
	${BSDCFG_LIBE}/070.usermgmt/groupdel                                 \
	${BSDCFG_LIBE}/070.usermgmt/groupedit                                \
	${BSDCFG_LIBE}/070.usermgmt/groupinput                               \
	${BSDCFG_LIBE}/070.usermgmt/include/messages.subr                    \
	${BSDCFG_LIBE}/070.usermgmt/include/usermgmt.hlp                     \
	${BSDCFG_LIBE}/070.usermgmt/useradd                                  \
	${BSDCFG_LIBE}/070.usermgmt/userdel                                  \
	${BSDCFG_LIBE}/070.usermgmt/useredit                                 \
	${BSDCFG_LIBE}/070.usermgmt/userinput                                \
	${BSDCFG_LIBE}/070.usermgmt/usermgmt                                 \
	${BSDCFG_LIBE}/080.console/INDEX                                     \
	${BSDCFG_LIBE}/080.console/USAGE                                     \
	${BSDCFG_LIBE}/080.console/console                                   \
	${BSDCFG_LIBE}/080.console/font                                      \
	${BSDCFG_LIBE}/080.console/include/messages.subr                     \
	${BSDCFG_LIBE}/080.console/keymap                                    \
	${BSDCFG_LIBE}/080.console/repeat                                    \
	${BSDCFG_LIBE}/080.console/saver                                     \
	${BSDCFG_LIBE}/080.console/screenmap                                 \
	${BSDCFG_LIBE}/080.console/ttys                                      \
	${BSDCFG_LIBE}/090.timezone/INDEX                                    \
	${BSDCFG_LIBE}/090.timezone/USAGE                                    \
	${BSDCFG_LIBE}/090.timezone/include/messages.subr                    \
	${BSDCFG_LIBE}/090.timezone/timezone                                 \
	${BSDCFG_LIBE}/110.mouse/INDEX                                       \
	${BSDCFG_LIBE}/110.mouse/USAGE                                       \
	${BSDCFG_LIBE}/110.mouse/disable                                     \
	${BSDCFG_LIBE}/110.mouse/enable                                      \
	${BSDCFG_LIBE}/110.mouse/flags                                       \
	${BSDCFG_LIBE}/110.mouse/include/messages.subr                       \
	${BSDCFG_LIBE}/110.mouse/mouse                                       \
	${BSDCFG_LIBE}/110.mouse/port                                        \
	${BSDCFG_LIBE}/110.mouse/type                                        \
	${BSDCFG_LIBE}/120.networking/INDEX                                  \
	${BSDCFG_LIBE}/120.networking/USAGE                                  \
	${BSDCFG_LIBE}/120.networking/defaultrouter                          \
	${BSDCFG_LIBE}/120.networking/devices                                \
	${BSDCFG_LIBE}/120.networking/hostname                               \
	${BSDCFG_LIBE}/120.networking/include/messages.subr                  \
	${BSDCFG_LIBE}/120.networking/nameservers                            \
	${BSDCFG_LIBE}/120.networking/networking                             \
	${BSDCFG_LIBE}/130.security/INDEX                                    \
	${BSDCFG_LIBE}/130.security/USAGE                                    \
	${BSDCFG_LIBE}/130.security/include/messages.subr                    \
	${BSDCFG_LIBE}/130.security/include/securelevel.hlp                  \
	${BSDCFG_LIBE}/130.security/kern_securelevel                         \
	${BSDCFG_LIBE}/130.security/security                                 \
	${BSDCFG_LIBE}/140.startup/INDEX                                     \
	${BSDCFG_LIBE}/140.startup/USAGE                                     \
	${BSDCFG_LIBE}/140.startup/include/messages.subr                     \
	${BSDCFG_LIBE}/140.startup/misc                                      \
	${BSDCFG_LIBE}/140.startup/rcadd                                     \
	${BSDCFG_LIBE}/140.startup/rcconf                                    \
	${BSDCFG_LIBE}/140.startup/rcdelete                                  \
	${BSDCFG_LIBE}/140.startup/rcedit                                    \
	${BSDCFG_LIBE}/140.startup/rcvar                                     \
	${BSDCFG_LIBE}/140.startup/startup                                   \
	${BSDCFG_LIBE}/150.ttys/INDEX                                        \
	${BSDCFG_LIBE}/150.ttys/USAGE                                        \
	${BSDCFG_LIBE}/150.ttys/include/messages.subr                        \
	${BSDCFG_LIBE}/150.ttys/ttys                                         \
	${BSDCFG_LIBE}/USAGE                                                 \
	${BSDCFG_LIBE}/dot/INDEX                                             \
	${BSDCFG_LIBE}/dot/USAGE                                             \
	${BSDCFG_LIBE}/dot/dot                                               \
	${BSDCFG_LIBE}/dot/include/messages.subr                             \
	${BSDCFG_LIBE}/include/bsdconfig.hlp                                 \
	${BSDCFG_LIBE}/include/media.hlp                                     \
	${BSDCFG_LIBE}/include/messages.subr                                 \
	${BSDCFG_LIBE}/include/network_device.hlp                            \
	${BSDCFG_LIBE}/include/options.hlp                                   \
	${BSDCFG_LIBE}/include/tcp.hlp                                       \
	${BSDCFG_LIBE}/include/usage.hlp                                     \
	${BSDCFG_SHARE}/common.subr                                          \
	${BSDCFG_SHARE}/device.subr                                          \
	${BSDCFG_SHARE}/dialog.subr                                          \
	${BSDCFG_SHARE}/media/any.subr                                       \
	${BSDCFG_SHARE}/media/cdrom.subr                                     \
	${BSDCFG_SHARE}/media/common.subr                                    \
	${BSDCFG_SHARE}/media/directory.subr                                 \
	${BSDCFG_SHARE}/media/dos.subr                                       \
	${BSDCFG_SHARE}/media/floppy.subr                                    \
	${BSDCFG_SHARE}/media/ftp.subr                                       \
	${BSDCFG_SHARE}/media/http.subr                                      \
	${BSDCFG_SHARE}/media/httpproxy.subr                                 \
	${BSDCFG_SHARE}/media/network.subr                                   \
	${BSDCFG_SHARE}/media/nfs.subr                                       \
	${BSDCFG_SHARE}/media/options.subr                                   \
	${BSDCFG_SHARE}/media/tcpip.subr                                     \
	${BSDCFG_SHARE}/media/ufs.subr                                       \
	${BSDCFG_SHARE}/media/usb.subr                                       \
	${BSDCFG_SHARE}/mustberoot.subr                                      \
	${BSDCFG_SHARE}/networking/common.subr                               \
	${BSDCFG_SHARE}/networking/device.subr                               \
	${BSDCFG_SHARE}/networking/hostname.subr                             \
	${BSDCFG_SHARE}/networking/ipaddr.subr                               \
	${BSDCFG_SHARE}/networking/media.subr                                \
	${BSDCFG_SHARE}/networking/netmask.subr                              \
	${BSDCFG_SHARE}/networking/resolv.subr                               \
	${BSDCFG_SHARE}/networking/routing.subr                              \
	${BSDCFG_SHARE}/networking/services.subr                             \
	${BSDCFG_SHARE}/packages/categories.subr                             \
	${BSDCFG_SHARE}/packages/index.subr                                  \
	${BSDCFG_SHARE}/packages/packages.subr                               \
	${BSDCFG_SHARE}/password/password.subr                               \
	${BSDCFG_SHARE}/script.subr                                          \
	${BSDCFG_SHARE}/startup/rcconf.subr                                  \
	${BSDCFG_SHARE}/startup/rcedit.subr                                  \
	${BSDCFG_SHARE}/startup/rcvar.subr                                   \
	${BSDCFG_SHARE}/strings.subr                                         \
	${BSDCFG_SHARE}/struct.subr                                          \
	${BSDCFG_SHARE}/sysrc.subr                                           \
	${BSDCFG_SHARE}/timezone/continents.subr                             \
	${BSDCFG_SHARE}/timezone/countries.subr                              \
	${BSDCFG_SHARE}/timezone/iso3166.subr                                \
	${BSDCFG_SHARE}/timezone/menus.subr                                  \
	${BSDCFG_SHARE}/timezone/zones.subr                                  \
	${BSDCFG_SHARE}/usermgmt/group_input.subr                            \
	${BSDCFG_SHARE}/usermgmt/user_input.subr                             \
	${BSDCFG_SHARE}/variable.subr

PLIST_DIRS=	${BSDCFG_LIBE}/020.docsinstall/include \
		${BSDCFG_LIBE}/020.docsinstall         \
		${BSDCFG_LIBE}/030.packages/include    \
		${BSDCFG_LIBE}/030.packages            \
		${BSDCFG_LIBE}/040.password/include    \
		${BSDCFG_LIBE}/040.password            \
		${BSDCFG_LIBE}/050.diskmgmt/include    \
		${BSDCFG_LIBE}/050.diskmgmt            \
		${BSDCFG_LIBE}/070.usermgmt/include    \
		${BSDCFG_LIBE}/070.usermgmt            \
		${BSDCFG_LIBE}/080.console/include     \
		${BSDCFG_LIBE}/080.console             \
		${BSDCFG_LIBE}/090.timezone/include    \
		${BSDCFG_LIBE}/090.timezone            \
		${BSDCFG_LIBE}/110.mouse/include       \
		${BSDCFG_LIBE}/110.mouse               \
		${BSDCFG_LIBE}/120.networking/include  \
		${BSDCFG_LIBE}/120.networking          \
		${BSDCFG_LIBE}/130.security/include    \
		${BSDCFG_LIBE}/130.security            \
		${BSDCFG_LIBE}/140.startup/include     \
		${BSDCFG_LIBE}/140.startup             \
		${BSDCFG_LIBE}/150.ttys/include        \
		${BSDCFG_LIBE}/150.ttys                \
		${BSDCFG_LIBE}/dot/include             \
		${BSDCFG_LIBE}/dot                     \
		${BSDCFG_LIBE}/include                 \
		${BSDCFG_LIBE}                         \
		${BSDCFG_SHARE}/media                  \
		${BSDCFG_SHARE}/networking             \
		${BSDCFG_SHARE}/packages               \
		${BSDCFG_SHARE}/password               \
		${BSDCFG_SHARE}/startup                \
		${BSDCFG_SHARE}/timezone               \
		${BSDCFG_SHARE}/usermgmt               \
		${BSDCFG_SHARE}                        \
		share/examples/bsdconfig

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 900030
IGNORE=		requires FreeBSD 9.0 or later
.endif

post-patch:
	@${GREP} -Ilrs '^BSDCFG_LIBE=' ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} \
		-e 's|^\(BSDCFG_LIBE="\)[^"]*\(.*\)|\1${PREFIX}/libexec/${PORTNAME}\2|'
	@${GREP} -Ilrs '^BSDCFG_LIBE=' ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} \
		-e 's|^\(BSDCFG_LOCAL_LIBE="\)[^"]*\(.*\)|\1${PREFIX}/libexec/${PORTNAME}\2|'
	@${GREP} -Ilrs '^BSDCFG_SHARE=' ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} \
		-e 's|^\(BSDCFG_SHARE=\).*|\1"${PREFIX}/share/${PORTNAME}"|'
	@${REINPLACE_CMD} \
		-e 's|^\(BSDCONFIG=\).*|\1${PREFIX}/sbin/${PORTNAME}|' \
		${WRKSRC}/dot/dot

do-install:
	@( cd ${WRKSRC} && make \
		LIBEXECDIR="${PREFIX}/libexec" \
		MANDIR="${MANDIR}"             \
		SBINDIR="${PREFIX}/sbin"       \
		SHAREDIR="${PREFIX}/share"     \
		install                        )

.include <bsd.port.post.mk>