Changeset 5026

Introduction of new layouts, as taken from ticket #389. I hope they make sense, as I have no way to check.

Committed by:  coppice
Date:  Jul 03 2008 * 16:14 (about 1 month ago)

Affected files:

callweaver/trunk/configure.ac (unified diff)

r5010r5026
202202 # ==========================================================================
203203 # Directory layouts are defined in separate layout profiles:
204204 # --------------------------------------------------------------------------
205 # profile filename description
205 # profile filename description
206206 # --------------------------------------------------------------------------
207 # bsd layout.bsd follow convention used by BSD ports system
208 # bsd-romfs layout.bsd-romfs BSD embedded devices with ROM filesystems
209 # fhs layout.fhs follow Filesystem Hierarchy Standard (FHS)
210 # lsb layout.lsb follow Linux Standards Base (LSB) standard
211 # lsb-romfs layout.lsb-romfs Linux embedded devices with ROM filesystems
212 # singledir built-in install everything under a single directory
207 # freebsd layout.freebsd follow convention used by FreeBSD ports system
208 # freebsd-romfs layout.freebsd-romfs FreeBSD embedded devices with ROM filesystems
209 # openbsd layout.openbsd follow convention used by OpenBSD ports system
210 # fhs layout.fhs follow Filesystem Hierarchy Standard (FHS)
211 # lsb layout.lsb follow Linux Standards Base (LSB) standard
212 # lsb-romfs layout.lsb-romfs Linux embedded devices with ROM filesystems
213 # singledir built-in install everything under a single directory
213214 # --------------------------------------------------------------------------
214215 #
215216 # The default directory layout is OS dependent:
216217 # --------------------------------------------------------------------------
217 # OS type default profile
218 # host OS default profile
218219 # --------------------------------------------------------------------------
219 # BSD bsd
220 # FreeBSD freebsd
221 # OpenBSD openbsd
220222 # Linux lsb
221223 # Solaris singledir, using prefix /opt/csw/callweaver
222224 # --------------------------------------------------------------------------
------
358360
359361 # define commandline parameter --with-directory-layout
360362 AC_ARG_WITH([directory-layout],
361 [AC_HELP_STRING([--with-directory-layout],[Specify an installation directory layout, either a pre-defined or a user-defined profile. Pre-defined profiles are bsd, bsd-romfs, fhs, lsb, lsb-romfs and singledir. The default is OS dependent.])],,[with_directory_layout="automatic"])
363 [AC_HELP_STRING([--with-directory-layout],[Specify an installation directory layout, either a pre-defined or a user-defined profile. Pre-defined profiles are fhs, freebsd, freebsd-romfs, lsb, lsb-romfs, openbsd and singledir. The default is OS dependent.])],,[with_directory_layout="automatic"])
362364
363365 # use OS specific default if no layout was specified
364366 if test "${with_directory_layout}" = "automatic"; then
365367 AC_MSG_NOTICE([Directory layout will be set automatically...])
366 case "${ostype}" in
367 bsd)
368 # use BSD profile in file layout.bsd
369 with_directory_layout="bsd"
368 case "${host_os}" in
369 freebsd*)
370 # use FreeBSD profile in file layout.freebsd
371 with_directory_layout="freebsd"
370372 ;;
371 linux)
373 openbsd*)
374 # use OpenBSD profile in file layout.openbsd
375 with_directory_layout="openbsd"
376 ;;
377 linux*)
372378 # use LSB profile in file layout.lsb
373379 with_directory_layout="lsb"
374380 ;;
375 solaris)
381 solaris*)
376382 # use built-in SINGLEDIR profile
377383 with_directory_layout="singledir"
378384 ;;

callweaver/trunk/layout.bsd (unified diff)

r4512r5026
1 # BSD directory layout
2 helpstring="follow the BSD ports system convention"
3 cwprefix=/usr/local
4 cwexecdir=${prefix}/libexec
5 cwutilsdir=${prefix}/sbin
6 cwconfdir=${prefix}/etc/callweaver
7 cwlibdir=${prefix}/lib/callweaver
8 cwvardir=${prefix}/var/lib/callweaver
9 cwdatadir=${prefix}/share/callweaver
10 cwlogdir=${prefix}/var/log
11 cwrundir=${prefix}/var/run
12 cwspooldir=${prefix}/var/spool/callweaver
13 cwmandir=${prefix}/man
14 cwdocdir=${prefix}/share/doc/callweaver

callweaver/trunk/layout.bsd-romfs (unified diff)

r4512r5026
1 # BSD-ROMFS directory layout
2 helpstring="for BSD embedded devices with ROM filesystems"
3 cwprefix=
4 cwexecdir=/usr/libexec
5 cwutilsdir=/usr/sbin
6 cwconfdir=/etc/callweaver
7 cwlibdir=/usr/lib/callweaver
8 cwvardir=/var/lib/callweaver
9 cwdatadir=/usr/share/callweaver
10 cwlogdir=/var/log/callweaver
11 cwrundir=/var/run
12 cwspooldir=/var/spool/callweaver
13 cwmandir=/usr/share/man
14 cwdocdir=/usr/share/doc