Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Fetching latest commit…

Cannot retrieve the latest commit at this time

..
Failed to load latest commit information.
Makefile
README.md
stats.c

README.md

General Information

The pkg-plugin-stats plugin is used for displaying package stats during:

  • pre-install
  • post-install
  • pre-deinstall
  • post-deinstall

How to build the plugin?

In order to build the plugin enter into the plugin's directory and run make(1), e.g.:

$ cd /path/to/pkg-plugins-stats
$ make

Once the plugin is built you can install it using the following command:

$ make install 

The plugin will be installed as a shared library in ${PREFIX}/lib/libpkg-plugin-stats.so

Configuring the plugin

In order to configure the plugin simply copy the stats.conf file to the pkgng plugins directory, which by default is set to /usr/local/etc/pkg/plugins, unless you've specified it elsewhere by using the PKG_PLUGINS_DIR option.

$ cp /path/to/pkg-plugins-stats/stats.conf /usr/local/etc/pkg/plugins/

Testing the plugin

To test the plugin, first check that it is recongnized and loaded by pkgng by executing the pkg plugins command:

$ pkg plugins
NAME       DESC                                VERSION    LOADED    
stats      Plugin for displaying package stats 1.0        YES     

If the plugin shows up correctly then you are good to go!

Now go ahead and install/deintall a package and see it in action! :)

Something went wrong with that request. Please try again.