aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlen Barber <gjb@FreeBSD.org>2016-02-04 21:16:35 +0000
committerGlen Barber <gjb@FreeBSD.org>2016-02-04 21:16:35 +0000
commita70cba95822f662d3f9da5119b6a0c433e8f70af (patch)
treeea8c1d13fde3ae04c310e3cdd9699bee2b5f454b
parentbb4355f72d0d8763d4a0f3ddec791c458649bf45 (diff)
downloadsrc-a70cba95822f662d3f9da5119b6a0c433e8f70af.tar.gz
src-a70cba95822f662d3f9da5119b6a0c433e8f70af.zip
First pass through library packaging.
Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/projects/release-pkg/; revision=295278
-rw-r--r--lib/lib80211/Makefile1
-rw-r--r--lib/libarchive/Makefile1
-rw-r--r--lib/libauditd/Makefile1
-rw-r--r--lib/libbegemot/Makefile1
-rw-r--r--lib/libblocksruntime/Makefile1
-rw-r--r--lib/libbluetooth/Makefile1
-rw-r--r--lib/libbsdstat/Makefile1
-rw-r--r--lib/libbsm/Makefile1
-rw-r--r--lib/libbz2/Makefile1
-rw-r--r--lib/libc++/Makefile1
-rw-r--r--lib/libc/Makefile1
-rw-r--r--lib/libcalendar/Makefile1
-rw-r--r--lib/libcam/Makefile1
-rw-r--r--lib/libcapsicum/Makefile1
-rw-r--r--lib/libcasper/Makefile1
-rw-r--r--lib/libcom_err/Makefile1
-rw-r--r--lib/libcompat/Makefile1
-rw-r--r--lib/libcompiler_rt/Makefile1
-rw-r--r--lib/libcrypt/Makefile1
-rw-r--r--lib/libcuse/Makefile1
-rw-r--r--lib/libcxxrt/Makefile1
-rw-r--r--lib/libdevctl/Makefile1
-rw-r--r--lib/libdevinfo/Makefile1
-rw-r--r--lib/libdevstat/Makefile1
-rw-r--r--lib/libdpv/Makefile1
-rw-r--r--lib/libdwarf/Makefile1
-rw-r--r--lib/libedit/Makefile1
-rw-r--r--lib/libefi/Makefile1
-rw-r--r--lib/libelf/Makefile1
-rw-r--r--lib/libelftc/Makefile1
-rw-r--r--lib/libevent/Makefile1
-rw-r--r--lib/libexecinfo/Makefile1
-rw-r--r--lib/libexpat/Makefile1
-rw-r--r--lib/libfetch/Makefile1
-rw-r--r--lib/libfigpar/Makefile1
-rw-r--r--lib/libgeom/Makefile1
-rw-r--r--lib/libgpio/Makefile1
-rw-r--r--lib/libgssapi/Makefile1
-rw-r--r--lib/libipsec/Makefile1
-rw-r--r--lib/libjail/Makefile1
-rw-r--r--lib/libkiconv/Makefile1
-rw-r--r--lib/libkvm/Makefile1
-rw-r--r--lib/libldns/Makefile1
-rw-r--r--lib/liblzma/Makefile1
-rw-r--r--lib/libmagic/Makefile1
-rw-r--r--lib/libmd/Makefile1
-rw-r--r--lib/libmemstat/Makefile1
-rw-r--r--lib/libmilter/Makefile1
-rw-r--r--lib/libmp/Makefile1
-rw-r--r--lib/libmt/Makefile1
-rw-r--r--lib/libnandfs/Makefile1
-rw-r--r--lib/libnetbsd/Makefile1
-rw-r--r--lib/libnetgraph/Makefile1
-rw-r--r--lib/libngatm/Makefile1
-rw-r--r--lib/libnv/Makefile1
-rw-r--r--lib/libopenbsd/Makefile1
-rw-r--r--lib/libopie/Makefile1
-rw-r--r--lib/libpcap/Makefile1
-rw-r--r--lib/libpjdlog/Makefile1
-rw-r--r--lib/libpmc/Makefile1
-rw-r--r--lib/libproc/Makefile1
-rw-r--r--lib/libprocstat/Makefile1
-rw-r--r--lib/libradius/Makefile1
-rw-r--r--lib/librpcsec_gss/Makefile1
-rw-r--r--lib/librpcsvc/Makefile1
-rw-r--r--lib/librt/Makefile1
-rw-r--r--lib/librtld_db/Makefile1
-rw-r--r--lib/libsbuf/Makefile1
-rw-r--r--lib/libsdp/Makefile1
-rw-r--r--lib/libsm/Makefile1
-rw-r--r--lib/libsmb/Makefile1
-rw-r--r--lib/libsmdb/Makefile1
-rw-r--r--lib/libsmutil/Makefile1
-rw-r--r--lib/libsqlite3/Makefile1
-rw-r--r--lib/libstand/Makefile1
-rw-r--r--lib/libstdbuf/Makefile1
-rw-r--r--lib/libstdthreads/Makefile1
-rw-r--r--lib/libsysdecode/Makefile1
-rw-r--r--lib/libtacplus/Makefile1
-rw-r--r--lib/libtelnet/Makefile1
-rw-r--r--lib/libthr/Makefile1
-rw-r--r--lib/libthread_db/Makefile1
-rw-r--r--lib/libucl/Makefile1
-rw-r--r--lib/libufs/Makefile1
-rw-r--r--lib/libugidfw/Makefile1
-rw-r--r--lib/libulog/Makefile1
-rw-r--r--lib/libunbound/Makefile1
-rw-r--r--lib/libusb/Makefile1
-rw-r--r--lib/libusbhid/Makefile1
-rw-r--r--lib/libutil/Makefile1
-rw-r--r--lib/libvgl/Makefile1
-rw-r--r--lib/libvmmapi/Makefile1
-rw-r--r--lib/libwrap/Makefile1
-rw-r--r--lib/libxo/Makefile1
-rw-r--r--lib/liby/Makefile1
-rw-r--r--lib/libypclnt/Makefile1
-rw-r--r--lib/libz/Makefile1
-rw-r--r--lib/msun/Makefile1
98 files changed, 98 insertions, 0 deletions
diff --git a/lib/lib80211/Makefile b/lib/lib80211/Makefile
index e00017e7e43e..fe103ce81cbd 100644
--- a/lib/lib80211/Makefile
+++ b/lib/lib80211/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
+PACKAGE=lib${LIB}
LIB= 80211
SHLIBDIR?= /lib
SHLIB_MAJOR= 1
diff --git a/lib/libarchive/Makefile b/lib/libarchive/Makefile
index 93749b9df1a2..6f0ccd1f9c9e 100644
--- a/lib/libarchive/Makefile
+++ b/lib/libarchive/Makefile
@@ -1,6 +1,7 @@
# $FreeBSD$
.include <src.opts.mk>
+PACKAGE=lib${LIB}
_LIBARCHIVEDIR= ${.CURDIR}/../../contrib/libarchive
LIB= archive
diff --git a/lib/libauditd/Makefile b/lib/libauditd/Makefile
index 10039e9914ec..f8ed80a30fe3 100644
--- a/lib/libauditd/Makefile
+++ b/lib/libauditd/Makefile
@@ -2,6 +2,7 @@
# $FreeBSD$
#
+PACKAGE=lib${LIB}
OPENBSMDIR= ${.CURDIR}/../../contrib/openbsm
_LIBAUDITDDIR= ${OPENBSMDIR}/libauditd
_LIBBSMDIR= ${OPENBSMDIR}/libbsm
diff --git a/lib/libbegemot/Makefile b/lib/libbegemot/Makefile
index 27baf563cff6..d2783859254d 100644
--- a/lib/libbegemot/Makefile
+++ b/lib/libbegemot/Makefile
@@ -2,6 +2,7 @@
LIBBEGEMOT_DIR=${.CURDIR}/../../contrib/libbegemot
+PACKAGE=lib${LIB}
.PATH: ${LIBBEGEMOT_DIR}
LIB= begemot
diff --git a/lib/libblocksruntime/Makefile b/lib/libblocksruntime/Makefile
index f95393311142..5933fb5253d2 100644
--- a/lib/libblocksruntime/Makefile
+++ b/lib/libblocksruntime/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
+PACKAGE=lib${LIB:tl}
LIB= BlocksRuntime
SHLIB_MAJOR=0
CFLAGS+=-I${.CURDIR}
diff --git a/lib/libbluetooth/Makefile b/lib/libbluetooth/Makefile
index 7e2189221b8e..a8573ec2fffa 100644
--- a/lib/libbluetooth/Makefile
+++ b/lib/libbluetooth/Makefile
@@ -1,6 +1,7 @@
# $Id: Makefile,v 1.5 2003/07/22 18:38:04 max Exp $
# $FreeBSD$
+PACKAGE= lib${LIB}
LIB= bluetooth
MAN= bluetooth.3
diff --git a/lib/libbsdstat/Makefile b/lib/libbsdstat/Makefile
index aef0ec241923..dea45f52b92b 100644
--- a/lib/libbsdstat/Makefile
+++ b/lib/libbsdstat/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
+PACKAGE= lib${LIB}
LIB= bsdstat
SHLIB_MAJOR= 1
PRIVATELIB=
diff --git a/lib/libbsm/Makefile b/lib/libbsm/Makefile
index 037def718bcd..4416227da066 100644
--- a/lib/libbsm/Makefile
+++ b/lib/libbsm/Makefile
@@ -2,6 +2,7 @@
# $FreeBSD$
#
+PACKAGE= lib${LIB}
OPENBSMDIR= ${.CURDIR}/../../contrib/openbsm
_LIBBSMDIR= ${OPENBSMDIR}/libbsm
diff --git a/lib/libbz2/Makefile b/lib/libbz2/Makefile
index b505927b4fb7..93c724ee0954 100644
--- a/lib/libbz2/Makefile
+++ b/lib/libbz2/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
+PACKAGE= lib${LIB}
BZ2DIR= ${.CURDIR}/../../contrib/bzip2
.PATH: ${BZ2DIR}
diff --git a/lib/libc++/Makefile b/lib/libc++/Makefile
index 94e91b94b003..33b1e44ff328 100644
--- a/lib/libc++/Makefile
+++ b/lib/libc++/Makefile
@@ -2,6 +2,7 @@
.include <src.opts.mk>
+PACKAGE= lib${LIB}
_LIBCXXRTDIR= ${.CURDIR}/../../contrib/libcxxrt
HDRDIR= ${.CURDIR}/../../contrib/libc++/include
SRCDIR= ${.CURDIR}/../../contrib/libc++/src
diff --git a/lib/libc/Makefile b/lib/libc/Makefile
index 707fc1a46a18..b07dfeeca200 100644
--- a/lib/libc/Makefile
+++ b/lib/libc/Makefile
@@ -1,6 +1,7 @@
# @(#)Makefile 8.2 (Berkeley) 2/3/94
# $FreeBSD$
+PACKAGE= lib${LIB}
SHLIBDIR?= /lib
.include <src.opts.mk>
diff --git a/lib/libcalendar/Makefile b/lib/libcalendar/Makefile
index b0ae002fd5e9..d217a10a7f5c 100644
--- a/lib/libcalendar/Makefile
+++ b/lib/libcalendar/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
+PACKAGE= lib${LIB}
LIB= calendar
SRCS= calendar.c easter.c
diff --git a/lib/libcam/Makefile b/lib/libcam/Makefile
index c44836947d51..a4cae7aa8a6c 100644
--- a/lib/libcam/Makefile
+++ b/lib/libcam/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
+PACKAGE= lib${LIB}
LIB= cam
SHLIBDIR?= /lib
SRCS= camlib.c scsi_cmdparse.c scsi_all.c scsi_da.c scsi_sa.c cam.c \
diff --git a/lib/libcapsicum/Makefile b/lib/libcapsicum/Makefile
index 6ee5bb83eada..bf34f6f4ffc1 100644
--- a/lib/libcapsicum/Makefile
+++ b/lib/libcapsicum/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
+PACKAGE= lib${LIB}
LIB= capsicum
SHLIB_MAJOR= 0
diff --git a/lib/libcasper/Makefile b/lib/libcasper/Makefile
index e57accdf94a3..1058878cc1fc 100644
--- a/lib/libcasper/Makefile
+++ b/lib/libcasper/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
+PACKAGE= lib${LIB}
LIB= casper
SHLIB_MAJOR= 0
diff --git a/lib/libcom_err/Makefile b/lib/libcom_err/Makefile
index 72260fee077a..b6f389f7bb80 100644
--- a/lib/libcom_err/Makefile
+++ b/lib/libcom_err/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
+PACKAGE=lib${LIB}
LIB= com_err
SRCS= com_err.c error.c
INCS= ${COM_ERRDIR}/com_err.h ${COM_ERRDIR}/com_right.h
diff --git a/lib/libcompat/Makefile b/lib/libcompat/Makefile
index fca86c7b157e..0bd47dfce0b2 100644
--- a/lib/libcompat/Makefile
+++ b/lib/libcompat/Makefile
@@ -1,6 +1,7 @@
# @(#)Makefile 8.1 (Berkeley) 6/4/93
# $FreeBSD$
+PACKAGE=lib${LIB}
LIB= compat
CFLAGS+=-DLIBC_SCCS -DSYSLIBC_SCCS -I${.CURDIR}/../libc/locale
NO_PIC=
diff --git a/lib/libcompiler_rt/Makefile b/lib/libcompiler_rt/Makefile
index 86daee4aabf0..7a29a5903f60 100644
--- a/lib/libcompiler_rt/Makefile
+++ b/lib/libcompiler_rt/Makefile
@@ -2,6 +2,7 @@
.include <src.opts.mk>
+PACKAGE=lib${LIB}
LIB= compiler_rt
NO_PIC=
WARNS?= 2
diff --git a/lib/libcrypt/Makefile b/lib/libcrypt/Makefile
index d5d03477570a..c1f8542bc7b8 100644
--- a/lib/libcrypt/Makefile
+++ b/lib/libcrypt/Makefile
@@ -2,6 +2,7 @@
# $FreeBSD$
#
+PACKAGE=lib${LIB}
SHLIBDIR?= /lib
.include <src.opts.mk>
diff --git a/lib/libcuse/Makefile b/lib/libcuse/Makefile
index a232fa241c62..607d36b3374e 100644
--- a/lib/libcuse/Makefile
+++ b/lib/libcuse/Makefile
@@ -24,6 +24,7 @@
# SUCH DAMAGE.
#
+PACKAGE=lib${LIB}
LIB= cuse
SHLIB_MAJOR= 1
SHLIB_MINOR= 0
diff --git a/lib/libcxxrt/Makefile b/lib/libcxxrt/Makefile
index d197361a9a66..50305aa9b686 100644
--- a/lib/libcxxrt/Makefile
+++ b/lib/libcxxrt/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
+PACKAGE=lib${LIB}
SRCDIR= ${.CURDIR}/../../contrib/libcxxrt
SHLIB_MAJOR= 1
diff --git a/lib/libdevctl/Makefile b/lib/libdevctl/Makefile
index 74687ecc2bd2..ed56b25dc374 100644
--- a/lib/libdevctl/Makefile
+++ b/lib/libdevctl/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
+PACKAGE=lib${LIB}
LIB= devctl
SRCS= devctl.c
INCS= devctl.h
diff --git a/lib/libdevinfo/Makefile b/lib/libdevinfo/Makefile
index 9e755d73b0d4..6c0927ee0b41 100644
--- a/lib/libdevinfo/Makefile
+++ b/lib/libdevinfo/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
+PACKAGE=lib${LIB}
LIB= devinfo
SRCS= devinfo.c
INCS= devinfo.h
diff --git a/lib/libdevstat/Makefile b/lib/libdevstat/Makefile
index dcda3c2bdac8..df5d44ec30db 100644
--- a/lib/libdevstat/Makefile
+++ b/lib/libdevstat/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
+PACKAGE=lib${LIB}
LIB= devstat
SHLIBDIR?= /lib
# Bump DEVSTAT_USER_API_VER in devstat.h every time this is incremented.
diff --git a/lib/libdpv/Makefile b/lib/libdpv/Makefile
index f2dc481057e5..952dfd650f63 100644
--- a/lib/libdpv/Makefile
+++ b/lib/libdpv/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
+PACKAGE=lib${LIB}
LIB= dpv
SHLIB_MAJOR= 1
INCS= dpv.h
diff --git a/lib/libdwarf/Makefile b/lib/libdwarf/Makefile
index bd98d8f4e040..1e2506d23e36 100644
--- a/lib/libdwarf/Makefile
+++ b/lib/libdwarf/Makefile
@@ -1,6 +1,7 @@
# $FreeBSD$
.include <bsd.own.mk>
+PACKAGE=lib${LIB}
TOP= ${.CURDIR}/../../contrib/elftoolchain
SRCDIR= ${TOP}/libdwarf
diff --git a/lib/libedit/Makefile b/lib/libedit/Makefile
index 8a97ce0f341b..f2f313d29fd0 100644
--- a/lib/libedit/Makefile
+++ b/lib/libedit/Makefile
@@ -2,6 +2,7 @@
# @(#)Makefile 8.1 (Berkeley) 6/4/93
# $FreeBSD$
+PACKAGE=lib${LIB}
LIB= edit
SHLIB_MAJOR= 7
SHLIBDIR?= /lib
diff --git a/lib/libefi/Makefile b/lib/libefi/Makefile
index 16aa3e7e224b..d9862f061899 100644
--- a/lib/libefi/Makefile
+++ b/lib/libefi/Makefile
@@ -2,6 +2,7 @@
.include <bsd.own.mk>
+PACKAGE=lib${LIB}
LIB= efi
SHLIB_MAJOR= 1
diff --git a/lib/libelf/Makefile b/lib/libelf/Makefile
index f6229213851c..70d9e9bc423a 100644
--- a/lib/libelf/Makefile
+++ b/lib/libelf/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
+PACKAGE=lib${LIB}
SHLIBDIR?= /lib
.include <bsd.own.mk>
diff --git a/lib/libelftc/Makefile b/lib/libelftc/Makefile
index ed5c02a93cb0..e2269b41fcb4 100644
--- a/lib/libelftc/Makefile
+++ b/lib/libelftc/Makefile
@@ -1,6 +1,7 @@
# $FreeBSD$
.include <bsd.own.mk>
+PACKAGE=lib${LIB}
INTERNALLIB=
ELFTCDIR= ${.CURDIR}/../../contrib/elftoolchain
diff --git a/lib/libevent/Makefile b/lib/libevent/Makefile
index 1d20bcdc9478..d8cc57216cde 100644
--- a/lib/libevent/Makefile
+++ b/lib/libevent/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
+PACKAGE=lib${LIB}
.PATH: ${.CURDIR}/../../contrib/pf/libevent
.include <src.opts.mk>
diff --git a/lib/libexecinfo/Makefile b/lib/libexecinfo/Makefile
index 5f9aac5e5c21..c444f7fc6855 100644
--- a/lib/libexecinfo/Makefile
+++ b/lib/libexecinfo/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
+PACKAGE=lib${LIB}
LIBEXECINFO= ${.CURDIR}/../../contrib/libexecinfo
LIB= execinfo
diff --git a/lib/libexpat/Makefile b/lib/libexpat/Makefile
index 0d4bef55e2f3..d0de3e0089c4 100644
--- a/lib/libexpat/Makefile
+++ b/lib/libexpat/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
+PACKAGE=lib${LIB}
EXPAT= ${.CURDIR}/../../contrib/expat
LIB= bsdxml
diff --git a/lib/libfetch/Makefile b/lib/libfetch/Makefile
index 4f56552801cf..abd5f8de23f6 100644
--- a/lib/libfetch/Makefile
+++ b/lib/libfetch/Makefile
@@ -2,6 +2,7 @@
.include <src.opts.mk>
+PACKAGE=lib${LIB}
LIB= fetch
CFLAGS+= -I.
SRCS= fetch.c common.c ftp.c http.c file.c \
diff --git a/lib/libfigpar/Makefile b/lib/libfigpar/Makefile
index 6f0196606c7b..c220b887923b 100644
--- a/lib/libfigpar/Makefile
+++ b/lib/libfigpar/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
+PACKAGE=lib${LIB}
LIB= figpar
SHLIB_MAJOR= 0
INCS= figpar.h string_m.h
diff --git a/lib/libgeom/Makefile b/lib/libgeom/Makefile
index 20b7a4c7c3b8..ea1f6c83a961 100644
--- a/lib/libgeom/Makefile
+++ b/lib/libgeom/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
+PACKAGE=lib${LIB}
LIB= geom
SHLIBDIR?= /lib
SRCS+= geom_getxml.c
diff --git a/lib/libgpio/Makefile b/lib/libgpio/Makefile
index 4393c79e56e5..9cc6387f9943 100644
--- a/lib/libgpio/Makefile
+++ b/lib/libgpio/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
+PACKAGE=lib${LIB}
LIB= gpio
SHLIB_MAJOR= 0
diff --git a/lib/libgssapi/Makefile b/lib/libgssapi/Makefile
index 3f016b49bb73..a48610114b4c 100644
--- a/lib/libgssapi/Makefile
+++ b/lib/libgssapi/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
+PACKAGE=lib${LIB}
LIB= gssapi
SHLIB_MAJOR= 10
VERSION_DEF= ${.CURDIR}/../libc/Versions.def
diff --git a/lib/libipsec/Makefile b/lib/libipsec/Makefile
index 7d3e94a7db5a..460a5d79b0b4 100644
--- a/lib/libipsec/Makefile
+++ b/lib/libipsec/Makefile
@@ -27,6 +27,7 @@
#
# $FreeBSD$
+PACKAGE=lib${LIB}
SHLIBDIR?= /lib
.include <src.opts.mk>
diff --git a/lib/libjail/Makefile b/lib/libjail/Makefile
index 7932e9f4882b..74eb8e1091b2 100644
--- a/lib/libjail/Makefile
+++ b/lib/libjail/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
+PACKAGE=lib${LIB}
LIB= jail
SHLIBDIR?= /lib
SHLIB_MAJOR= 1
diff --git a/lib/libkiconv/Makefile b/lib/libkiconv/Makefile
index c7b2179c1943..5ada7db0b06b 100644
--- a/lib/libkiconv/Makefile
+++ b/lib/libkiconv/Makefile
@@ -4,6 +4,7 @@ SHLIBDIR?= /lib
.include <src.opts.mk>
+PACKAGE=lib${LIB}
LIB= kiconv
SRCS= kiconv_sysctl.c xlat16_iconv.c xlat16_sysctl.c
SRCS+= quirks.c
diff --git a/lib/libkvm/Makefile b/lib/libkvm/Makefile
index 33f8e5b8137c..0fdeec905d9f 100644
--- a/lib/libkvm/Makefile
+++ b/lib/libkvm/Makefile
@@ -1,6 +1,7 @@
# @(#)Makefile 8.1 (Berkeley) 6/4/93
# $FreeBSD$
+PACKAGE=lib${LIB}
LIB= kvm
SHLIBDIR?= /lib
diff --git a/lib/libldns/Makefile b/lib/libldns/Makefile
index 9a436cdb4b9d..14dc9f9da1ac 100644
--- a/lib/libldns/Makefile
+++ b/lib/libldns/Makefile
@@ -3,6 +3,7 @@
# Vendor sources and generated files
LDNSDIR = ${.CURDIR}/../../contrib/ldns
+PACKAGE=lib${LIB}
.PATH: ${LDNSDIR} ${LDNSDIR}/compat
LIB= ldns
diff --git a/lib/liblzma/Makefile b/lib/liblzma/Makefile
index 8a6c23d84d1d..62c2994febad 100644
--- a/lib/liblzma/Makefile
+++ b/lib/liblzma/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
+PACKAGE=lib${LIB}
LIB= lzma
LZMADIR= ${.CURDIR}/../../contrib/xz/src/liblzma
diff --git a/lib/libmagic/Makefile b/lib/libmagic/Makefile
index 2add1d3c27b5..d77de6c42caa 100644
--- a/lib/libmagic/Makefile
+++ b/lib/libmagic/Makefile
@@ -1,6 +1,7 @@
# $FreeBSD$
# Copyright (c) David E. O'Brien, 2000-2004, 2006, 2009
+PACKAGE=lib${LIB}
CONTRDIR= ${.CURDIR}/../../contrib/file
.PATH: ${CONTRDIR}/src
.PATH: ${CONTRDIR}/doc
diff --git a/lib/libmd/Makefile b/lib/libmd/Makefile
index 43b8a5a84fa4..bde4fb5c0a9e 100644
--- a/lib/libmd/Makefile
+++ b/lib/libmd/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
+PACKAGE=lib${LIB}
LIB= md
SHLIB_MAJOR= 6
SHLIBDIR?= /lib
diff --git a/lib/libmemstat/Makefile b/lib/libmemstat/Makefile
index 597dc6db1606..8554eb0482e8 100644
--- a/lib/libmemstat/Makefile
+++ b/lib/libmemstat/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
+PACKAGE=lib${LIB}
WARNS?= 3
LIB= memstat
SHLIB_MAJOR= 3
diff --git a/lib/libmilter/Makefile b/lib/libmilter/Makefile
index 81172ec5b31c..2cb2694bac80 100644
--- a/lib/libmilter/Makefile
+++ b/lib/libmilter/Makefile
@@ -2,6 +2,7 @@
.include <src.opts.mk>
+PACKAGE=lib${LIB}
SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
.PATH: ${SENDMAIL_DIR}/libmilter ${SENDMAIL_DIR}/libsm
diff --git a/lib/libmp/Makefile b/lib/libmp/Makefile
index 6a73658103e5..8d8c5278e573 100644
--- a/lib/libmp/Makefile
+++ b/lib/libmp/Makefile
@@ -2,6 +2,7 @@
.include <src.opts.mk>
+PACKAGE=lib${LIB}
LIB= mp
SHLIB_MAJOR= 7
LIBADD= crypto
diff --git a/lib/libmt/Makefile b/lib/libmt/Makefile
index 6fe59201a87f..c67130ecc57e 100644
--- a/lib/libmt/Makefile
+++ b/lib/libmt/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
+PACKAGE=lib${LIB}
LIB= mt
SHLIBDIR?= /lib
SRCS= mtlib.c
diff --git a/lib/libnandfs/Makefile b/lib/libnandfs/Makefile
index d87573e2f343..e900c3c6eab4 100644
--- a/lib/libnandfs/Makefile
+++ b/lib/libnandfs/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
+PACKAGE=lib${LIB}
LIB= nandfs
SRCS+= nandfs.c
INCS= libnandfs.h
diff --git a/lib/libnetbsd/Makefile b/lib/libnetbsd/Makefile
index 09c6985e6c83..92ad745dc58c 100644
--- a/lib/libnetbsd/Makefile
+++ b/lib/libnetbsd/Makefile
@@ -2,6 +2,7 @@
.include <bsd.own.mk>
+PACKAGE=lib${LIB}
LIB= netbsd
CFLAGS+= -I${.CURDIR}
diff --git a/lib/libnetgraph/Makefile b/lib/libnetgraph/Makefile
index d0c444eb3095..d3c7c3fa64a4 100644
--- a/lib/libnetgraph/Makefile
+++ b/lib/libnetgraph/Makefile
@@ -1,6 +1,7 @@
# $FreeBSD$
# $Whistle: Makefile,v 1.4 1999/01/17 03:41:02 julian Exp $
+PACKAGE=lib${LIB}
LIB= netgraph
WARNS?= 3
MAN= netgraph.3
diff --git a/lib/libngatm/Makefile b/lib/libngatm/Makefile
index 85294b0471df..71f21d5d0111 100644
--- a/lib/libngatm/Makefile
+++ b/lib/libngatm/Makefile
@@ -2,6 +2,7 @@
#
# Author: Harti Brandt <harti@freebsd.org>
#
+PACKAGE=lib${LIB}
LIB= ngatm
SHLIB_MAJOR= 4
MAN= libngatm.3 uniaddr.3 unifunc.3 unimsg.3 unisap.3 unistruct.3
diff --git a/lib/libnv/Makefile b/lib/libnv/Makefile
index 38ec009815b7..1b750d2e0e6f 100644
--- a/lib/libnv/Makefile
+++ b/lib/libnv/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
+PACKAGE=lib${LIB}
SHLIBDIR?= /lib
.include <src.opts.mk>
diff --git a/lib/libopenbsd/Makefile b/lib/libopenbsd/Makefile
index 3eb6b743d186..afb41b393fbd 100644
--- a/lib/libopenbsd/Makefile
+++ b/lib/libopenbsd/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
+PACKAGE=lib${LIB}
LIB= openbsd
SRCS= getdtablecount.c \
imsg-buffer.c \
diff --git a/lib/libopie/Makefile b/lib/libopie/Makefile
index e66e67a4f9e8..367bbc6ac7be 100644
--- a/lib/libopie/Makefile
+++ b/lib/libopie/Makefile
@@ -2,6 +2,7 @@
#
# $FreeBSD$
#
+PACKAGE=lib${LIB}
OPIE_DIST?= ${.CURDIR}/../../contrib/opie
DIST_DIR= ${OPIE_DIST}/${.CURDIR:T}
SHLIB_MAJOR= 8
diff --git a/lib/libpcap/Makefile b/lib/libpcap/Makefile
index cdc02287988a..e7512e659121 100644
--- a/lib/libpcap/Makefile
+++ b/lib/libpcap/Makefile
@@ -5,6 +5,7 @@ SHLIBDIR?= /lib
.include <src.opts.mk>
+PACKAGE=lib${LIB}
LIB= pcap
SRCS= grammar.y tokdefs.h version.h pcap-bpf.c \
pcap-netmap.c \
diff --git a/lib/libpjdlog/Makefile b/lib/libpjdlog/Makefile
index e44f53b489fa..b43d0eff8f09 100644
--- a/lib/libpjdlog/Makefile
+++ b/lib/libpjdlog/Makefile
@@ -2,6 +2,7 @@
# $FreeBSD$
#
+PACKAGE=lib${LIB}
SHLIBDIR?= /lib
.include <bsd.own.mk>
diff --git a/lib/libpmc/Makefile b/lib/libpmc/Makefile
index 4227794e28a4..0e5555601bfa 100644
--- a/lib/libpmc/Makefile
+++ b/lib/libpmc/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
+PACKAGE=lib${LIB}
LIB= pmc
SRCS= libpmc.c pmclog.c
diff --git a/lib/libproc/Makefile b/lib/libproc/Makefile
index 8c4f4848354e..0372377d8b64 100644
--- a/lib/libproc/Makefile
+++ b/lib/libproc/Makefile
@@ -2,6 +2,7 @@
.include <src.opts.mk>
+PACKAGE=lib${LIB}
LIB= proc
SRCS= proc_bkpt.c \
diff --git a/lib/libprocstat/Makefile b/lib/libprocstat/Makefile
index fc71dbcb666d..240718dd9cd6 100644
--- a/lib/libprocstat/Makefile
+++ b/lib/libprocstat/Makefile
@@ -2,6 +2,7 @@
.include <src.opts.mk>
+PACKAGE=lib${LIB}
LIB= procstat
SRCS= cd9660.c \
diff --git a/lib/libradius/Makefile b/lib/libradius/Makefile
index 42f5def20ef1..3ce1435aa2d9 100644
--- a/lib/libradius/Makefile
+++ b/lib/libradius/Makefile
@@ -26,6 +26,7 @@
.include <src.opts.mk>
+PACKAGE=lib${LIB}
LIB= radius
SRCS= radlib.c
INCS= radlib.h radlib_vs.h
diff --git a/lib/librpcsec_gss/Makefile b/lib/librpcsec_gss/Makefile
index c3e768445004..e59f1e5cfa52 100644
--- a/lib/librpcsec_gss/Makefile
+++ b/lib/librpcsec_gss/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
+PACKAGE=lib${LIB}
LIB= rpcsec_gss
SHLIB_MAJOR= 1
SRCS+= rpcsec_gss.c rpcsec_gss_prot.c rpcsec_gss_conf.c rpcsec_gss_misc.c \
diff --git a/lib/librpcsvc/Makefile b/lib/librpcsvc/Makefile
index ba972ac3e8eb..1deda175c6a5 100644
--- a/lib/librpcsvc/Makefile
+++ b/lib/librpcsvc/Makefile
@@ -5,6 +5,7 @@
.PATH: ${.CURDIR}/../../include/rpcsvc
+PACKAGE=lib${LIB}
LIB= rpcsvc
RPCSRCS= klm_prot.x mount.x nfs_prot.x nlm_prot.x rex.x rnusers.x \
diff --git a/lib/librt/Makefile b/lib/librt/Makefile
index 3c16976690d0..560f2af36855 100644
--- a/lib/librt/Makefile
+++ b/lib/librt/Makefile
@@ -2,6 +2,7 @@
.include <src.opts.mk>
+PACKAGE=lib${LIB}
LIB=rt
SHLIB_MAJOR= 1
CFLAGS+=-I${.CURDIR}/../libc/include -I${.CURDIR}
diff --git a/lib/librtld_db/Makefile b/lib/librtld_db/Makefile
index 9f9b6039d5b4..eec7970eaaa9 100644
--- a/lib/librtld_db/Makefile
+++ b/lib/librtld_db/Makefile
@@ -2,6 +2,7 @@
.include <bsd.own.mk>
+PACKAGE=lib${LIB}
LIB= rtld_db
SHLIB_MAJOR= 2
MAN= librtld_db.3
diff --git a/lib/libsbuf/Makefile b/lib/libsbuf/Makefile
index 98ceeb6b373d..ebf4a8d4a99d 100644
--- a/lib/libsbuf/Makefile
+++ b/lib/libsbuf/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
+PACKAGE=lib${LIB}
LIB= sbuf
SHLIBDIR?= /lib
SRCS= subr_prf.c subr_sbuf.c
diff --git a/lib/libsdp/Makefile b/lib/libsdp/Makefile
index fcedb5028cec..0037252ccc6b 100644
--- a/lib/libsdp/Makefile
+++ b/lib/libsdp/Makefile
@@ -1,6 +1,7 @@
# $Id: Makefile,v 1.2 2003/09/07 20:34:19 max Exp $
# $FreeBSD$
+PACKAGE=lib${LIB}
LIB= sdp
MAN= sdp.3
diff --git a/lib/libsm/Makefile b/lib/libsm/Makefile
index 1ec2dc1ef3e6..af2831479b06 100644
--- a/lib/libsm/Makefile
+++ b/lib/libsm/Makefile
@@ -2,6 +2,7 @@
.include <src.opts.mk>
+PACKAGE=lib${LIB}
SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
.PATH: ${SENDMAIL_DIR}/libsm
diff --git a/lib/libsmb/Makefile b/lib/libsmb/Makefile
index b63754bd982a..6236a2e00fba 100644
--- a/lib/libsmb/Makefile
+++ b/lib/libsmb/Makefile
@@ -2,6 +2,7 @@
.include <src.opts.mk>
+PACKAGE=lib${LIB}
CONTRIBDIR= ${.CURDIR}/../../contrib/smbfs
.PATH: ${CONTRIBDIR}/lib/smb
diff --git a/lib/libsmdb/Makefile b/lib/libsmdb/Makefile
index f1f51997244e..3fbd11648869 100644
--- a/lib/libsmdb/Makefile
+++ b/lib/libsmdb/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
+PACKAGE=lib${LIB}
SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
.PATH: ${SENDMAIL_DIR}/libsmdb
diff --git a/lib/libsmutil/Makefile b/lib/libsmutil/Makefile
index e7919eab9f25..e1d908e9fea5 100644
--- a/lib/libsmutil/Makefile
+++ b/lib/libsmutil/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
+PACKAGE=lib${LIB}
SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
.PATH: ${SENDMAIL_DIR}/libsmutil
diff --git a/lib/libsqlite3/Makefile b/lib/libsqlite3/Makefile
index d44615162878..37a3a6ef1227 100644
--- a/lib/libsqlite3/Makefile
+++ b/lib/libsqlite3/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
+PACKAGE=lib${LIB}
PRIVATELIB= yes
LIB= sqlite3
SHLIB_MAJOR?= 0
diff --git a/lib/libstand/Makefile b/lib/libstand/Makefile
index 8ae0e1a00107..e94ccbd0f0bb 100644
--- a/lib/libstand/Makefile
+++ b/lib/libstand/Makefile
@@ -6,6 +6,7 @@
# quite large.
#
+PACKAGE=lib${LIB}
MK_PROFILE= no
MK_SSP= no
diff --git a/lib/libstdbuf/Makefile b/lib/libstdbuf/Makefile
index ea233a8ad19b..7d8c3ca3a1d2 100644
--- a/lib/libstdbuf/Makefile
+++ b/lib/libstdbuf/Makefile
@@ -2,6 +2,7 @@
.include <bsd.own.mk>
+PACKAGE=lib${LIB}
LIB= stdbuf
SRCS= stdbuf.c
SHLIB_MAJOR= 1
diff --git a/lib/libstdthreads/Makefile b/lib/libstdthreads/Makefile
index 8daee58b0e87..3200d4e36ba6 100644
--- a/lib/libstdthreads/Makefile
+++ b/lib/libstdthreads/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
+PACKAGE=lib${LIB}
LIB= stdthreads
SHLIB_MAJOR= 0
diff --git a/lib/libsysdecode/Makefile b/lib/libsysdecode/Makefile
index e1e69fef64e8..75a9e31ad785 100644
--- a/lib/libsysdecode/Makefile
+++ b/lib/libsysdecode/Makefile
@@ -2,6 +2,7 @@
.include <src.opts.mk>
+PACKAGE=lib${LIB}
LIB= sysdecode
SRCS= ioctl.c syscallnames.c utrace.c
diff --git a/lib/libtacplus/Makefile b/lib/libtacplus/Makefile
index 01345e175a6b..73d8e766da0d 100644
--- a/lib/libtacplus/Makefile
+++ b/lib/libtacplus/Makefile
@@ -24,6 +24,7 @@
#
# $FreeBSD$
+PACKAGE=lib${LIB}
LIB= tacplus
SRCS= taclib.c
INCS= taclib.h
diff --git a/lib/libtelnet/Makefile b/lib/libtelnet/Makefile
index 7f737332673a..b5bba12bebe1 100644
--- a/lib/libtelnet/Makefile
+++ b/lib/libtelnet/Makefile
@@ -3,6 +3,7 @@
.include <src.opts.mk>
+PACKAGE=lib${LIB}
TELNETDIR= ${.CURDIR}/../../contrib/telnet
.PATH: ${TELNETDIR}/libtelnet
diff --git a/lib/libthr/Makefile b/lib/libthr/Makefile
index 17176729b2e5..0fac742b98b4 100644
--- a/lib/libthr/Makefile
+++ b/lib/libthr/Makefile
@@ -8,6 +8,7 @@
# (for system call stubs) to CFLAGS below. -DSYSLIBC_SCCS affects just the
# system call stubs.
+PACKAGE=lib${LIB}
SHLIBDIR?= /lib
.include <src.opts.mk>
diff --git a/lib/libthread_db/Makefile b/lib/libthread_db/Makefile
index b612f4f8d789..dfd451639501 100644
--- a/lib/libthread_db/Makefile
+++ b/lib/libthread_db/Makefile
@@ -2,6 +2,7 @@
.PATH: ${.CURDIR}/arch/${MACHINE_CPUARCH}
+PACKAGE=lib${LIB}
LIB= thread_db
SHLIB_MAJOR= 3
SRCS= thread_db.c
diff --git a/lib/libucl/Makefile b/lib/libucl/Makefile
index 09a0bf2cc2a3..802048f65afd 100644
--- a/lib/libucl/Makefile
+++ b/lib/libucl/Makefile
@@ -2,6 +2,7 @@
LIBUCL= ${.CURDIR}/../../contrib/libucl
+PACKAGE=lib${LIB}
LIB= ucl
PRIVATELIB= true
SHLIB_MAJOR= 1
diff --git a/lib/libufs/Makefile b/lib/libufs/Makefile
index 24efd0ccc5fa..86fa4c9c47be 100644
--- a/lib/libufs/Makefile
+++ b/lib/libufs/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
+PACKAGE=lib${LIB}
LIB= ufs
SHLIBDIR?= /lib
SHLIB_MAJOR= 6
diff --git a/lib/libugidfw/Makefile b/lib/libugidfw/Makefile
index f11200d234cb..2df6a24df479 100644
--- a/lib/libugidfw/Makefile
+++ b/lib/libugidfw/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
+PACKAGE=lib${LIB}
LIB= ugidfw
SHLIB_MAJOR= 5
SRCS= ugidfw.c
diff --git a/lib/libulog/Makefile b/lib/libulog/Makefile
index fedd114efb9e..434f3f6ce199 100644
--- a/lib/libulog/Makefile
+++ b/lib/libulog/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
+PACKAGE=lib${LIB}
SHLIBDIR?=/lib
.include <src.opts.mk>
diff --git a/lib/libunbound/Makefile b/lib/libunbound/Makefile
index ea94e6d4362d..9a7838d92a18 100644
--- a/lib/libunbound/Makefile
+++ b/lib/libunbound/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
+PACKAGE=lib${LIB}
# Vendor sources and generated files
LDNSDIR= ${.CURDIR}/../../contrib/ldns
UNBOUNDDIR= ${.CURDIR}/../../contrib/unbound
diff --git a/lib/libusb/Makefile b/lib/libusb/Makefile
index be55aa65a6d8..fe54d2aeb2b6 100644
--- a/lib/libusb/Makefile
+++ b/lib/libusb/Makefile
@@ -4,6 +4,7 @@
# Makefile for the FreeBSD specific LibUSB 2.0
#
+PACKAGE=lib${LIB}
LIB= usb
SHLIB_MAJOR= 3
SHLIB_MINOR= 0
diff --git a/lib/libusbhid/Makefile b/lib/libusbhid/Makefile
index 7dba7ffc9113..6efe9ccbe613 100644
--- a/lib/libusbhid/Makefile
+++ b/lib/libusbhid/Makefile
@@ -1,6 +1,7 @@
# $NetBSD: Makefile,v 1.5 1999/07/23 09:44:38 mrg Exp $
# $FreeBSD$
+PACKAGE=lib${LIB}
LIB= usbhid
MAN= usbhid.3
diff --git a/lib/libutil/Makefile b/lib/libutil/Makefile
index 35d146af720f..07412e0ece41 100644
--- a/lib/libutil/Makefile
+++ b/lib/libutil/Makefile
@@ -1,6 +1,7 @@
# @(#)Makefile 8.1 (Berkeley) 6/4/93
# $FreeBSD$
+PACKAGE=lib${LIB}
SHLIBDIR?= /lib
.include <src.opts.mk>
diff --git a/lib/libvgl/Makefile b/lib/libvgl/Makefile
index dfc4e81f33b8..5505d373bc12 100644
--- a/lib/libvgl/Makefile
+++ b/lib/libvgl/Makefile
@@ -1,4 +1,5 @@
# $FreeBSD$
+PACKAGE=lib${LIB}
LIB= vgl
SHLIB_MAJOR= 6
CFLAGS+=-Wall -I${.CURDIR}
diff --git a/lib/libvmmapi/Makefile b/lib/libvmmapi/Makefile
index 26cf86fbe4c0..bf17566a0d7d 100644
--- a/lib/libvmmapi/Makefile
+++ b/lib/libvmmapi/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
+PACKAGE=lib${LIB}
LIB= vmmapi
SRCS= vmmapi.c vmmapi_freebsd.c
INCS= vmmapi.h
diff --git a/lib/libwrap/Makefile b/lib/libwrap/Makefile
index 0acb0c4c8da7..b2253d888635 100644
--- a/lib/libwrap/Makefile
+++ b/lib/libwrap/Makefile
@@ -4,6 +4,7 @@
.include <src.opts.mk>
+PACKAGE=lib${LIB}
LIB= wrap
SHLIB_MAJOR= 6
INCS= tcpd.h
diff --git a/lib/libxo/Makefile b/lib/libxo/Makefile
index f8453f405282..2f3f1673d2cd 100644
--- a/lib/libxo/Makefile
+++ b/lib/libxo/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
+PACKAGE=lib${LIB}
SHLIBDIR?= /lib
.include <src.opts.mk>
diff --git a/lib/liby/Makefile b/lib/liby/Makefile
index 34939452dd75..2f357f3c7617 100644
--- a/lib/liby/Makefile
+++ b/lib/liby/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
+PACKAGE=lib${LIB}
LIB= y
SRCS= main.c yyerror.c
NO_PIC=
diff --git a/lib/libypclnt/Makefile b/lib/libypclnt/Makefile
index 2e302f124289..113a3cc83218 100644
--- a/lib/libypclnt/Makefile
+++ b/lib/libypclnt/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
+PACKAGE=lib${LIB}
LIB= ypclnt
SHLIB_MAJOR= 4
SRCS= ypclnt_connect.c \
diff --git a/lib/libz/Makefile b/lib/libz/Makefile
index 7a80fcbab520..6a372bb3a10f 100644
--- a/lib/libz/Makefile
+++ b/lib/libz/Makefile
@@ -2,6 +2,7 @@
# $FreeBSD$
#
+PACKAGE=lib${LIB}
LIB= z
SHLIBDIR?= /lib
SHLIB_MAJOR= 6
diff --git a/lib/msun/Makefile b/lib/msun/Makefile
index e731a9876b9a..cebfbd7ba556 100644
--- a/lib/msun/Makefile
+++ b/lib/msun/Makefile
@@ -12,6 +12,7 @@
#
#
+PACKAGE=lib${LIB}
.if ${MACHINE_CPUARCH} == "i386"
ARCH_SUBDIR= i387
.else