diff options
author | William Johansson <radar@radhuset.org> | 2015-04-24 20:22:51 +0200 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2015-06-10 15:43:11 -0400 |
commit | 1f21fbe26dfbc982492c8b7b90f3758a910f113d (patch) | |
tree | 80183a72bf5cd18387a89ddd368e762841c5f930 /pkgng/Makefile | |
parent | 87bb4978dade6117f69799f435dad741eb741655 (diff) |
Initial FreeBSD support with pkgng plugin
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 ]
Diffstat (limited to 'pkgng/Makefile')
-rw-r--r-- | pkgng/Makefile | 17 |
1 files changed, 17 insertions, 0 deletions
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 <bsd.own.mk> + +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 <bsd.lib.mk> |