From 762c7db2e8f714203a9766492a631d0ea310bd78 Mon Sep 17 00:00:00 2001 From: Florent Thoumie Date: Fri, 23 Apr 2010 11:07:43 +0000 Subject: - Take libinstall.a out of pkg_install and make it a proper shared library. - Rework the wrapper support to check libpkg version as well as pkg_install version. - Add libfetch to _prebuild_libs. - There are no new features introduced. Notes: the API is not stable, so basically, do not use libpkg in your projects for now. Also there's no manpage for libpkg yet, because the API will change drastically. I repeat, do not use libpkg for now. --- usr.sbin/pkg_install/create/Makefile | 6 ++---- usr.sbin/pkg_install/create/main.c | 4 +++- usr.sbin/pkg_install/create/perform.c | 2 +- usr.sbin/pkg_install/create/pl.c | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) (limited to 'usr.sbin/pkg_install/create') diff --git a/usr.sbin/pkg_install/create/Makefile b/usr.sbin/pkg_install/create/Makefile index 42718c6f9273..333403778fe3 100644 --- a/usr.sbin/pkg_install/create/Makefile +++ b/usr.sbin/pkg_install/create/Makefile @@ -3,12 +3,10 @@ PROG= pkg_create SRCS= main.c perform.c pl.c -CFLAGS+= -I${.CURDIR}/../lib - WARNS?= 3 WFORMAT?= 1 -DPADD= ${LIBINSTALL} ${LIBMD} -LDADD= ${LIBINSTALL} -lmd +DPADD= ${LIBMD} +LDADD= -lmd .include diff --git a/usr.sbin/pkg_install/create/main.c b/usr.sbin/pkg_install/create/main.c index d85392dc9c7d..e463d1f295bb 100644 --- a/usr.sbin/pkg_install/create/main.c +++ b/usr.sbin/pkg_install/create/main.c @@ -15,7 +15,7 @@ __FBSDID("$FreeBSD$"); #include #include -#include "lib.h" +#include #include "create.h" match_t MatchType = MATCH_GLOB; @@ -72,6 +72,8 @@ main(int argc, char **argv) int ch; char **pkgs, **start, *tmp; + pkg_wrap(PKG_INSTALL_VERSION, argv); + pkgs = start = argv; while ((ch = getopt_long(argc, argv, opts, longopts, NULL)) != -1) switch(ch) { diff --git a/usr.sbin/pkg_install/create/perform.c b/usr.sbin/pkg_install/create/perform.c index e4f0d2eae581..0e14095c815e 100644 --- a/usr.sbin/pkg_install/create/perform.c +++ b/usr.sbin/pkg_install/create/perform.c @@ -21,7 +21,7 @@ #include __FBSDID("$FreeBSD$"); -#include "lib.h" +#include #include "create.h" #include diff --git a/usr.sbin/pkg_install/create/pl.c b/usr.sbin/pkg_install/create/pl.c index 18bbaf24734b..fe62d421014e 100644 --- a/usr.sbin/pkg_install/create/pl.c +++ b/usr.sbin/pkg_install/create/pl.c @@ -21,7 +21,7 @@ #include __FBSDID("$FreeBSD$"); -#include "lib.h" +#include #include "create.h" #include #include -- cgit v1.2.3