From 1f21fbe26dfbc982492c8b7b90f3758a910f113d Mon Sep 17 00:00:00 2001 From: William Johansson Date: Fri, 24 Apr 2015 20:22:51 +0200 Subject: Initial FreeBSD support with pkgng plugin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a basic pkgng plugin as a preparation to integrate etckeeper on FreeBSD. Currently not enabled to build automatically. To use on FreeBSD, install etckeeper manually and install the plugin with: $ cd pkgng $ make $ make install and add this line to /usr/local/etc/pkg.conf: PLUGINS [ etckeeper ] --- pkgng/Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pkgng/Makefile (limited to 'pkgng/Makefile') diff --git a/pkgng/Makefile b/pkgng/Makefile new file mode 100644 index 0000000..92d3c1d --- /dev/null +++ b/pkgng/Makefile @@ -0,0 +1,17 @@ +.include + +PREFIX?= /usr/local +LIBDIR= ${PREFIX}/lib/pkg/ +SHLIB_DIR?= ${LIBDIR}/ +SHLIB_NAME?= ${PLUGIN_NAME}.so + +PLUGIN_NAME= etckeeper +SRCS= etckeeper.c + +PKGFLAGS!= pkgconf --cflags pkg +CFLAGS+= ${PKGFLAGS} + +beforeinstall: + ${INSTALL} -d ${LIBDIR} + +.include -- cgit v1.2.3