summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2015-12-04 18:21:05 +0000
committerbdrewery <bdrewery@FreeBSD.org>2015-12-04 18:21:05 +0000
commit21a73065663169869a66e64c2abe0eb79d794343 (patch)
treee485b4e9e8b2808cc1bcd27bcbe06a3dc7af08d8
parent2dfe4da949340502e028fbac90bf09eba18cda97 (diff)
downloadFreeBSD-src-21a73065663169869a66e64c2abe0eb79d794343.zip
FreeBSD-src-21a73065663169869a66e64c2abe0eb79d794343.tar.gz
MFC r290083:
Use more appropriate ${SHAREDIR} rather than /usr/share.
-rw-r--r--etc/Makefile20
-rw-r--r--sbin/atm/atmconfig/Makefile4
-rw-r--r--share/colldef/Makefile2
-rw-r--r--share/examples/smbfs/Makefile2
-rw-r--r--share/examples/smbfs/print/Makefile2
-rw-r--r--share/keys/pkg/trusted/Makefile2
-rw-r--r--share/mklocale/Makefile2
-rw-r--r--share/monetdef/Makefile2
-rw-r--r--share/msgdef/Makefile2
-rw-r--r--share/numericdef/Makefile2
-rw-r--r--share/sendmail/Makefile2
-rw-r--r--share/skel/Makefile4
-rw-r--r--share/timedef/Makefile2
-rw-r--r--usr.bin/vi/catalog/Makefile2
-rw-r--r--usr.sbin/ndiscvt/Makefile2
-rw-r--r--usr.sbin/zic/zdump/Makefile2
-rw-r--r--usr.sbin/zic/zic/Makefile2
17 files changed, 28 insertions, 28 deletions
diff --git a/etc/Makefile b/etc/Makefile
index 1927580..c50014d 100644
--- a/etc/Makefile
+++ b/etc/Makefile
@@ -378,26 +378,26 @@ distrib-dirs: ${MTREES:N/*}
.endif
${INSTALL_SYMLINK} usr/src/sys ${DESTDIR}/sys
.if ${MK_MAN} != "no"
- cd ${DESTDIR}/usr/share/man; \
+ cd ${DESTDIR}${SHAREDIR}/man; \
for mandir in man*; do \
${INSTALL_SYMLINK} ../$$mandir \
- ${DESTDIR}/usr/share/man/en.ISO8859-1/; \
+ ${DESTDIR}${SHAREDIR}/man/en.ISO8859-1/; \
${INSTALL_SYMLINK} ../$$mandir \
- ${DESTDIR}/usr/share/man/en.UTF-8/; \
+ ${DESTDIR}${SHAREDIR}/man/en.UTF-8/; \
done
.if ${MK_OPENSSL} != "no"
- cd ${DESTDIR}/usr/share/openssl/man; \
+ cd ${DESTDIR}${SHAREDIR}/openssl/man; \
for mandir in man*; do \
${INSTALL_SYMLINK} ../$$mandir \
- ${DESTDIR}/usr/share/openssl/man/en.ISO8859-1/; \
+ ${DESTDIR}${SHAREDIR}/openssl/man/en.ISO8859-1/; \
done
.endif
set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \
while [ $$# -gt 0 ] ; do \
- ${INSTALL_SYMLINK} "$$2" "${DESTDIR}/usr/share/man/$$1"; \
+ ${INSTALL_SYMLINK} "$$2" "${DESTDIR}${SHAREDIR}/man/$$1"; \
if [ "${MK_OPENSSL}" != "no" ]; then \
${INSTALL_SYMLINK} "$$2" \
- "${DESTDIR}/usr/share/openssl/man/$$1"; \
+ "${DESTDIR}${SHAREDIR}/openssl/man/$$1"; \
fi; \
shift; shift; \
done
@@ -405,7 +405,7 @@ distrib-dirs: ${MTREES:N/*}
.if ${MK_NLS} != "no"
set - `grep "^[a-zA-Z]" ${.CURDIR}/nls.alias`; \
while [ $$# -gt 0 ] ; do \
- ${INSTALL_SYMLINK} "$$2" "${DESTDIR}/usr/share/nls/$$1"; \
+ ${INSTALL_SYMLINK} "$$2" "${DESTDIR}${SHAREDIR}/nls/$$1"; \
shift; shift; \
done
.endif
@@ -413,8 +413,8 @@ distrib-dirs: ${MTREES:N/*}
etc-examples:
cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
${BIN1} ${BIN2} nsmb.conf opieaccess \
- ${DESTDIR}/usr/share/examples/etc
+ ${DESTDIR}${SHAREDIR}/examples/etc
${_+_}cd ${.CURDIR}/defaults; ${MAKE} install \
- DESTDIR=${DESTDIR}/usr/share/examples
+ DESTDIR=${DESTDIR}${SHAREDIR}/examples
.include <bsd.prog.mk>
diff --git a/sbin/atm/atmconfig/Makefile b/sbin/atm/atmconfig/Makefile
index be1adda..5d5b534 100644
--- a/sbin/atm/atmconfig/Makefile
+++ b/sbin/atm/atmconfig/Makefile
@@ -10,7 +10,7 @@
PROG= atmconfig
SRCS= main.c diag.c natm.c
MAN= atmconfig.8
-# CFLAGS+= -DPATH_HELP='".:/usr/share/doc/atm:/usr/local/share/doc/atm"'
+# CFLAGS+= -DPATH_HELP='".:${SHAREDIR}/doc/atm:/usr/local/share/doc/atm"'
CFLAGS+= -I${.OBJDIR}
@@ -33,7 +33,7 @@ WARNS?= 3
.endif
FILES= atmconfig.help atmconfig_device.help
-FILESDIR= /usr/share/doc/atm
+FILESDIR= ${SHAREDIR}/doc/atm
SNMP_ATM_DEF= ${.CURDIR}/../../../contrib/ngatm/snmp_atm/atm_tree.def \
${.CURDIR}/../../../usr.sbin/bsnmpd/modules/snmp_atm/atm_freebsd.def
diff --git a/share/colldef/Makefile b/share/colldef/Makefile
index 4b68f1e..b593894 100644
--- a/share/colldef/Makefile
+++ b/share/colldef/Makefile
@@ -42,7 +42,7 @@ LOCALES= bg_BG.CP1251 \
uk_UA.ISO8859-5 \
uk_UA.KOI8-U
-LOCALEDIR= /usr/share/locale
+LOCALEDIR= ${SHAREDIR}/locale
.SUFFIXES: .src .out
diff --git a/share/examples/smbfs/Makefile b/share/examples/smbfs/Makefile
index 9e5b99a..3867b80 100644
--- a/share/examples/smbfs/Makefile
+++ b/share/examples/smbfs/Makefile
@@ -1,7 +1,7 @@
# $FreeBSD$
NO_OBJ=
-BINDIR= /usr/share/examples/smbfs
+FILESDIR= ${SHAREDIR}/examples/smbfs
FILES= dot.nsmbrc
.PATH: ${.CURDIR}/../../../contrib/smbfs/examples
diff --git a/share/examples/smbfs/print/Makefile b/share/examples/smbfs/print/Makefile
index eb66815..67f4823 100644
--- a/share/examples/smbfs/print/Makefile
+++ b/share/examples/smbfs/print/Makefile
@@ -1,7 +1,7 @@
# $FreeBSD$
NO_OBJ=
-BINDIR= /usr/share/examples/smbfs/print
+FILESDIR= ${SHAREDIR}/examples/smbfs/print
FILES= lj6l ljspool printcap.sample tolj
.PATH: ${.CURDIR}/../../../../contrib/smbfs/examples/print
diff --git a/share/keys/pkg/trusted/Makefile b/share/keys/pkg/trusted/Makefile
index ee0d4c9..bc8d13a 100644
--- a/share/keys/pkg/trusted/Makefile
+++ b/share/keys/pkg/trusted/Makefile
@@ -4,7 +4,7 @@ NO_OBJ=
FILES= pkg.freebsd.org.2013102301
-FILESDIR= /usr/share/keys/pkg/trusted
+FILESDIR= ${SHAREDIR}/keys/pkg/trusted
FILESMODE= 644
.include <bsd.prog.mk>
diff --git a/share/mklocale/Makefile b/share/mklocale/Makefile
index b7f551e..ec79b5d 100644
--- a/share/mklocale/Makefile
+++ b/share/mklocale/Makefile
@@ -30,7 +30,7 @@ LOCALES= UTF-8 \
zh_HK.Big5HKSCS \
zh_TW.Big5
-LOCALEDIR= /usr/share/locale
+LOCALEDIR= ${SHAREDIR}/locale
.SUFFIXES: .src .out
diff --git a/share/monetdef/Makefile b/share/monetdef/Makefile
index 4385d87..9ee23c1 100644
--- a/share/monetdef/Makefile
+++ b/share/monetdef/Makefile
@@ -90,7 +90,7 @@ LOCALES= af_ZA.ISO8859-1 \
zh_HK.UTF-8 \
zh_TW.Big5
-LOCALEDIR= /usr/share/locale
+LOCALEDIR= ${SHAREDIR}/locale
.SUFFIXES: .src .out
diff --git a/share/msgdef/Makefile b/share/msgdef/Makefile
index 59a5383..ec87eee 100644
--- a/share/msgdef/Makefile
+++ b/share/msgdef/Makefile
@@ -70,7 +70,7 @@ LOCALES= af_ZA.ISO8859-1 \
zh_TW.Big5 \
zh_TW.UTF-8
-LOCALEDIR= /usr/share/locale
+LOCALEDIR= ${SHAREDIR}/locale
.SUFFIXES: .src .out
diff --git a/share/numericdef/Makefile b/share/numericdef/Makefile
index baf99de..5e691fe 100644
--- a/share/numericdef/Makefile
+++ b/share/numericdef/Makefile
@@ -44,7 +44,7 @@ LOCALES= af_ZA.ISO8859-1 \
uk_UA.KOI8-U \
zh_CN.eucCN
-LOCALEDIR= /usr/share/locale
+LOCALEDIR= ${SHAREDIR}/locale
.SUFFIXES: .src .out
diff --git a/share/sendmail/Makefile b/share/sendmail/Makefile
index 00427dc..cab9d5e 100644
--- a/share/sendmail/Makefile
+++ b/share/sendmail/Makefile
@@ -7,7 +7,7 @@ CFDIR= cf
CFDIRS!= (cd ${SENDMAIL_DIR}; find -L ${CFDIR} \( \( -name CVS -o -name .svn \) -prune \) -o -type d -print)
CFFILES!= (cd ${SENDMAIL_DIR}; find -L ${CFDIR} \( \( -name CVS -o -name .svn \) -prune \) -o -type f -print)
-DDIR= ${DESTDIR}/usr/share/sendmail
+DDIR= ${DESTDIR}${SHAREDIR}/sendmail
NO_OBJ=
diff --git a/share/skel/Makefile b/share/skel/Makefile
index ffe8015..9f8bf2f 100644
--- a/share/skel/Makefile
+++ b/share/skel/Makefile
@@ -5,8 +5,8 @@ FILESGROUPS= FILES1 FILES2
FILES1= dot.cshrc dot.login dot.login_conf dot.mailrc dot.profile \
dot.shrc
FILES2= dot.mail_aliases dot.rhosts
-FILES1DIR= /usr/share/skel
-FILES2DIR= /usr/share/skel
+FILES1DIR= ${SHAREDIR}/skel
+FILES2DIR= ${SHAREDIR}/skel
FILES1MODE= 0644
FILES2MODE= 0600
NO_OBJ=
diff --git a/share/timedef/Makefile b/share/timedef/Makefile
index 5a4060d..7269fb4 100644
--- a/share/timedef/Makefile
+++ b/share/timedef/Makefile
@@ -96,7 +96,7 @@ LOCALES= am_ET.UTF-8 \
zh_TW.Big5 \
zh_TW.UTF-8
-LOCALEDIR= /usr/share/locale
+LOCALEDIR= ${SHAREDIR}/locale
.SUFFIXES: .src .out
diff --git a/usr.bin/vi/catalog/Makefile b/usr.bin/vi/catalog/Makefile
index bd9db9f..30bc12c 100644
--- a/usr.bin/vi/catalog/Makefile
+++ b/usr.bin/vi/catalog/Makefile
@@ -115,7 +115,7 @@ SVLINKS= sv_SE
PLLINKS= pl_PL
FILES= ${CATALOGS}
-FILESDIR= /usr/share/vi/catalog
+FILESDIR= ${SHAREDIR}/vi/catalog
SYMLINKS=
.for l in ${NLLINKS}
SYMLINKS+= dutch ${FILESDIR}/$l.ISO8859-1
diff --git a/usr.sbin/ndiscvt/Makefile b/usr.sbin/ndiscvt/Makefile
index b11b4b0..eaf066c 100644
--- a/usr.sbin/ndiscvt/Makefile
+++ b/usr.sbin/ndiscvt/Makefile
@@ -24,7 +24,7 @@ CLEANFILES= y.output
FILES= windrv_stub.c
FILESNAME= windrv_stub.c
-FILESDIR= /usr/share/misc
+FILESDIR= ${SHAREDIR}/misc
SCRIPTS= ndisgen.sh
diff --git a/usr.sbin/zic/zdump/Makefile b/usr.sbin/zic/zdump/Makefile
index d654dee..2ff7db9 100644
--- a/usr.sbin/zic/zdump/Makefile
+++ b/usr.sbin/zic/zdump/Makefile
@@ -7,7 +7,7 @@ MAN= zdump.8
SRCS= zdump.c ialloc.c scheck.c
CFLAGS+= -DTM_GMTOFF=tm_gmtoff -DTM_ZONE=tm_zone -DSTD_INSPIRED -DPCTS
-CFLAGS+= -DHAVE_LONG_DOUBLE -DTZDIR=\"/usr/share/zoneinfo\" -Demkdir=mkdir
+CFLAGS+= -DHAVE_LONG_DOUBLE -DTZDIR=\"${SHAREDIR}/zoneinfo\" -Demkdir=mkdir
CFLAGS+= -I${.CURDIR}/.. -I${.CURDIR}/../../../contrib/tzcode/stdtime
WARNS?= 2
diff --git a/usr.sbin/zic/zic/Makefile b/usr.sbin/zic/zic/Makefile
index f473da5..c38e3b8 100644
--- a/usr.sbin/zic/zic/Makefile
+++ b/usr.sbin/zic/zic/Makefile
@@ -7,7 +7,7 @@ MAN= zic.8
SRCS= zic.c ialloc.c scheck.c
CFLAGS+= -DTM_GMTOFF=tm_gmtoff -DTM_ZONE=tm_zone -DSTD_INSPIRED -DPCTS
-CFLAGS+= -DHAVE_LONG_DOUBLE -DTZDIR=\"/usr/share/zoneinfo\" -Demkdir=mkdir
+CFLAGS+= -DHAVE_LONG_DOUBLE -DTZDIR=\"${SHAREDIR}/zoneinfo\" -Demkdir=mkdir
CFLAGS+= -DHAVE_STRERROR -DHAVE_UNISTD_H
CFLAGS+= -I${.CURDIR}/.. -I${.CURDIR}/../../../contrib/tzcode/stdtime
OpenPOWER on IntegriCloud