View | Details | Raw Unified | Return to bug 247179 | Differences between
and this patch

Collapse All | Expand All

(-)ports-mgmt/pkg-plugin-watchpkg/Makefile (+28 lines)
Line 0 Link Here
1
# $FreeBSD$
2
3
PORTNAME=	pkg-plugin-watchpkg
4
DISTVERSION=	1.0.0
5
CATEGORIES=	ports-mgmt
6
7
MAINTAINER=	ms-freebsd-ports@stoffnet.at
8
COMMENT=	Plugin for pkg(8) to notify a list of scripts about package changes
9
10
LICENSE=	BSD3CLAUSE
11
12
BUILD_DEPENDS=	pkg>0:ports-mgmt/pkg \
13
		pkgconf>0:devel/pkgconf
14
RUN_DEPENDS=	pkg>0:ports-mgmt/pkg
15
16
PLIST_FILES=	lib/pkg/watchpkg.so "@sample etc/pkg/watchpkg.conf.sample"
17
18
USE_GITHUB=	yes
19
GH_ACCOUNT=	srcbucket
20
GH_TAGNAME=	${DISTVERSION}
21
22
do-install:
23
	${MKDIR} ${STAGEDIR}${LOCALBASE}/lib/pkg/
24
	${MKDIR} ${STAGEDIR}${LOCALBASE}/etc/pkg/
25
	${INSTALL_LIB} ${WRKSRC}/watchpkg.so ${STAGEDIR}${LOCALBASE}/lib/pkg/
26
	${INSTALL_MAN} ${WRKSRC}/watchpkg.conf.sample ${STAGEDIR}${PREFIX}/etc/pkg/
27
28
.include <bsd.port.mk>
(-)ports-mgmt/pkg-plugin-watchpkg/distinfo (+3 lines)
Line 0 Link Here
1
TIMESTAMP = 1591886168
2
SHA256 (srcbucket-pkg-plugin-watchpkg-1.0.0_GH0.tar.gz) = 8c22dc9ba9ab30c1fdaf58444e5fc80e8d303215bb1b8704f61740e17b058951
3
SIZE (srcbucket-pkg-plugin-watchpkg-1.0.0_GH0.tar.gz) = 6245
(-)ports-mgmt/pkg-plugin-watchpkg/pkg-descr (+17 lines)
Line 0 Link Here
1
The plugin watches packages for INSTALL, DEINSTALL and UPGRADE events and
2
executes a set of scripts after 'pkg install', 'pkg upgrade', 'pkg remove' or
3
'pkg autoremove' have been run.
4
5
Create /usr/local/etc/pkg/watchpkg.conf based on watchpkg.conf.sample and edit
6
it to your liking.
7
8
In /usr/local/etc/pkg.conf, make sure PKG_ENABLE_PLUGINS is set to true and
9
add "watchpkg" to PLUGINS.
10
11
Check your setup via 'pkg plugins':
12
13
  $ pkg plugins
14
  NAME       DESC                                          VERSION
15
  watchpkg   Watch for package changes                     1.0.0
16
17
WWW: https://github.com/srcbucket/pkg-plugin-watchpkg

Return to bug 247179