FreeBSD Bugzilla – Attachment 217915 Details for
Bug 247179
New port: ports-mgmt/pkg-plugin-watchpkg Plugin to notify scripts about package changes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
New port: ports-mgmt/pkg-plugin-watchpkg
pkg-plugin-watchpkg.diff (text/plain), 6.37 KB, created by
Markus Stoff
on 2020-09-12 12:20:47 UTC
(
hide
)
Description:
New port: ports-mgmt/pkg-plugin-watchpkg
Filename:
MIME Type:
Creator:
Markus Stoff
Created:
2020-09-12 12:20:47 UTC
Size:
6.37 KB
patch
obsolete
>Index: ports-mgmt/pkg-plugin-watchpkg/Makefile >=================================================================== >--- ports-mgmt/pkg-plugin-watchpkg/Makefile (nonexistent) >+++ ports-mgmt/pkg-plugin-watchpkg/Makefile (working copy) >@@ -0,0 +1,28 @@ >+# $FreeBSD$ >+ >+PORTNAME= pkg-plugin-watchpkg >+DISTVERSION= 1.0.0 >+CATEGORIES= ports-mgmt >+ >+MAINTAINER= ms-freebsd-ports@stoffnet.at >+COMMENT= Plugin for pkg(8) to notify a list of scripts about package changes >+ >+LICENSE= BSD3CLAUSE >+ >+BUILD_DEPENDS= pkg>0:ports-mgmt/pkg \ >+ pkgconf>0:devel/pkgconf >+RUN_DEPENDS= pkg>0:ports-mgmt/pkg >+ >+PLIST_FILES= lib/pkg/watchpkg.so "@sample etc/pkg/watchpkg.conf.sample" >+ >+USE_GITHUB= yes >+GH_ACCOUNT= srcbucket >+GH_TAGNAME= ${DISTVERSION} >+ >+do-install: >+ ${MKDIR} ${STAGEDIR}${LOCALBASE}/lib/pkg/ >+ ${MKDIR} ${STAGEDIR}${LOCALBASE}/etc/pkg/ >+ ${INSTALL_LIB} ${WRKSRC}/watchpkg.so ${STAGEDIR}${LOCALBASE}/lib/pkg/ >+ ${INSTALL_MAN} ${WRKSRC}/watchpkg.conf.sample ${STAGEDIR}${PREFIX}/etc/pkg/ >+ >+.include <bsd.port.mk> > >Property changes on: ports-mgmt/pkg-plugin-watchpkg/Makefile >___________________________________________________________________ >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:keywords >## -0,0 +1 ## >+FreeBSD=%H >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: ports-mgmt/pkg-plugin-watchpkg/README.md >=================================================================== >--- ports-mgmt/pkg-plugin-watchpkg/README.md (nonexistent) >+++ ports-mgmt/pkg-plugin-watchpkg/README.md (working copy) >@@ -0,0 +1,65 @@ >+# pkg-plugin-watchpkg >+ >+Plugin for pkg(8) to notify a list of scripts about package changes >+ >+## Update port for a new release >+ >+Edit the `Makefile` and adjust the following variables: >+ >+Variable | Example | Description >+------------- | --------- | ----------- >+`DISTVERSION` | `1.0.0` | Must correspond with the actual plugin version as shown in `pkg plugins`. >+`GH_TAGNAME` | `b6e7315` | It will usually be `${DISTVERSION}`, but if necessary it may refer to a GIT commit ID like in the example. >+ >+Change into the ports directory and run: >+ >+ $ rm -f distinfo >+ # make makesum >+ >+This will (re)create the port's `distinfo` file. >+ >+## Test the port >+ >+See the [FreeBSD Porter's Handbook](https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/) for detailed information. >+ >+At least run: >+ >+ $ make package >+ # make install >+ >+Also perform static analysis of the port: >+ >+ $ portlint -abct >+ >+## Submit the changes >+ >+First, checkout the ports tree using subversion: >+ >+ $ svn co http://svn.freebsd.org/ports/head /tmp/ports >+ >+Next, copy your changed files into the temporary working copy: >+ >+ $ cd /path/to/pkg-plugin-watchpkg >+ $ git checkout freebsd-port >+ $ cp * /tmp/ports/ports-mgmt/pkg-plugin-watchpkg/ >+ >+Then create a subversion diff of your changes: >+ >+ $ cd /tmp/ports >+ $ svn diff ports-mgmt/pkg-plugin-watchpkg >/tmp/pkg-plugin-watchpkg.diff >+ >+At last, submit the new diff `/tmp/pkg-plugin-watchpkg.diff` using the [FreeBSD bug submission form](https://bugs.freebsd.org/submit/), as >+outlined [here](https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/porting-submitting.html) in the FreeBSD Porter's Handbook. >+ >+## Known Issues >+ >+`fetch: ...: size of remote file is not known` messages appear when performing `make fetch`: >+ >+ => srcbucket-pkg-plugin-watchpkg-1.0.0_GH0.tar.gz doesn't seem to exist in /usr/home/ms/ports/distfiles/. >+ => Attempting to fetch https://codeload.github.com/srcbucket/pkg-plugin-watchpkg/tar.gz/1.0.0?dummy=/srcbucket-pkg-plugin-watchpkg-1.0.0_GH0.tar.gz >+ fetch: https://codeload.github.com/srcbucket/pkg-plugin-watchpkg/tar.gz/1.0.0?dummy=/srcbucket-pkg-plugin-watchpkg-1.0.0_GH0.tar.gz: size unknown >+ fetch: https://codeload.github.com/srcbucket/pkg-plugin-watchpkg/tar.gz/1.0.0?dummy=/srcbucket-pkg-plugin-watchpkg-1.0.0_GH0.tar.gz: size of remote file is not known >+ srcbucket-pkg-plugin-watchpkg-1.0.0_GH0.tar.gz 6245 B 141 MBps 00s >+ >+These seem to be normal with GitHub and can safely be ignored. There is no way to avoid them. >+ > >Property changes on: ports-mgmt/pkg-plugin-watchpkg/README.md >___________________________________________________________________ >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: ports-mgmt/pkg-plugin-watchpkg/distinfo >=================================================================== >--- ports-mgmt/pkg-plugin-watchpkg/distinfo (nonexistent) >+++ ports-mgmt/pkg-plugin-watchpkg/distinfo (working copy) >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1591886168 >+SHA256 (srcbucket-pkg-plugin-watchpkg-1.0.0_GH0.tar.gz) = 8c22dc9ba9ab30c1fdaf58444e5fc80e8d303215bb1b8704f61740e17b058951 >+SIZE (srcbucket-pkg-plugin-watchpkg-1.0.0_GH0.tar.gz) = 6245 > >Property changes on: ports-mgmt/pkg-plugin-watchpkg/distinfo >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: ports-mgmt/pkg-plugin-watchpkg/pkg-descr >=================================================================== >--- ports-mgmt/pkg-plugin-watchpkg/pkg-descr (nonexistent) >+++ ports-mgmt/pkg-plugin-watchpkg/pkg-descr (working copy) >@@ -0,0 +1,17 @@ >+The plugin watches packages for INSTALL, DEINSTALL and UPGRADE events and >+executes a set of scripts after 'pkg install', 'pkg upgrade', 'pkg remove' or >+'pkg autoremove' have been run. >+ >+Create /usr/local/etc/pkg/watchpkg.conf based on watchpkg.conf.sample and edit >+it to your liking. >+ >+In /usr/local/etc/pkg.conf, make sure PKG_ENABLE_PLUGINS is set to true and >+add "watchpkg" to PLUGINS. >+ >+Check your setup via 'pkg plugins': >+ >+ $ pkg plugins >+ NAME DESC VERSION >+ watchpkg Watch for package changes 1.0.0 >+ >+WWW: https://github.com/srcbucket/pkg-plugin-watchpkg > >Property changes on: ports-mgmt/pkg-plugin-watchpkg/pkg-descr >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 247179
:
215457
|
217915
|
217916