1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/news/inn/Makefile.layout
Baptiste Daroussin 4a4ec28d37 Convert all :U to :tu and :L to :tl
Since FreeBSD 8.4 and FreeBSD 9.1 make(1) do support :tu and :tl as a
replacement for :U and :L (which has been marked as deprecated)

bmake which is the default on FreeBSD 10+ only support by default
:tu/:tl a hack has been added at the time to support :U and :L to ease
migration. This hack is now not necessary anymore

Note that this makes the ports tree incompatible with make(1) from
FreeBSD 8.3 or earlier

With hat:	portmgr
2014-05-05 09:45:36 +00:00

64 lines
2.2 KiB
Makefile

# $FreeBSD$
INN_LAYOUT?= old
.if !empty(INN_LAYOUT:tl:Mnew)
#-----------------------------------------------------------------------
# New-style layout. Keep database, spool, and other transient data under
# /var, where it should be.
#-----------------------------------------------------------------------
INN_NEWSBASE= ${PREFIX}/news
INN_ETCDIR= ${INN_NEWSBASE}/etc
INN_SHAREDIR= ${INN_NEWSBASE}/share
INN_RUNDIR= ${VARBASE}/run/news
INN_LOGDIR= ${VARBASE}/log/news
INN_DBDIR= ${VARBASE}/news/db
INN_TMPDIR= ${VARBASE}/news/tmp
INN_NEWSSPOOL= ${VARBASE}/news
.elif !empty(INN_LAYOUT:tl:Mhier)
#-----------------------------------------------------------------------
# hier(7)-ish layout. As above, but try to use standard directories
# under /var.
#-----------------------------------------------------------------------
INN_NEWSBASE= ${PREFIX}/news
INN_ETCDIR= ${PREFIX}/etc/news
INN_SHAREDIR= ${PREFIX}/share/inn
INN_RUNDIR= ${VARBASE}/run/news
INN_LOGDIR= ${VARBASE}/log/news
INN_DBDIR= ${VARBASE}/db/news
INN_TMPDIR= ${VARBASE}/tmp/news
INN_NEWSSPOOL= ${VARBASE}/spool/news
.else
#-----------------------------------------------------------------------
# Default layout ("old") - put everything in one place,
# except for log files (and possible spool data)
# Respect some legacy variables for backwards-compatibility.
#-----------------------------------------------------------------------
INN_NEWSBASE= ${PREFIX}/news
. if defined(WITH_STANDARD_ETC)
INN_ETCDIR= ${PREFIX}/etc/inn
. else
INN_ETCDIR?= ${INN_NEWSBASE}/etc
. endif
INN_RUNDIR= ${INN_NEWSBASE}/run
INN_NEWSLOG?= ${VARBASE}/log/news
INN_LOGDIR?= ${INN_NEWSLOG}
INN_DBDIR= ${INN_NEWSBASE}/db
INN_TMPDIR= ${INN_NEWSBASE}/tmp
INN_SHAREDIR= ${INN_NEWSBASE}/share
. if exists(${VARBASE}/news) && !defined(PACKAGE_BUILDING)
INN_NEWSSPOOL?= ${VARBASE}/news
. elif exists(${VARBASE}/spool/news) && !defined(PACKAGE_BUILDING)
INN_NEWSSPOOL?= ${VARBASE}/spool/news
. else
INN_NEWSSPOOL?= ${PREFIX}/news/spool
. endif
.endif
.for sub in NEWSBASE ETCDIR RUNDIR LOGDIR DBDIR TMPDIR NEWSSPOOL SHAREDIR
PLIST_SUB+= ${sub}="${INN_${sub}:C,^${PREFIX},%D,}"
SUB_LIST+= ${sub}="${INN_${sub}:C,^${PREFIX},${PREFIX},}"
.endfor
PLIST_SUB+= CWDNEWSBASE="@cwd ${INN_NEWSBASE}"