Skip to content

Instantly share code, notes, and snippets.

pkg -vvv <[1810][13:21]]
version: 1.0-beta15 0d147cab0b6f63644edb46d6588b1702ceb5f224
abi: freebsd:9:x86:64
db dir: /var/db/pkg
cache dir: /var/cache/pkg
ports dir: /usr/ports
Log into syslog: yes
Assume always yes: no
Handle rc scripts: no
Track shlibs: no
@dnaeon
dnaeon / gist:2982601
Created June 24, 2012 09:18
pkg stats
# pkg stats with multirepos
mra:(/usr/home/mra/PROJECTS/pkgng)(master↑11|✔) % pkg stats <[1819][12:16]]
/!\ WARNING WARNING WARNING /!\
/!\ WORKING ON MULTIPLE REPOSITORIES /!\
/!\ THIS FEATURE IS STILL CONSIDERED EXPERIMENTAL /!\
/!\ YOU HAVE BEEN WARNED /!\
Local package database:
# PORT
ifdef (WITH_ETCSHELLS)
@${ECHO_MSG} "===> Updating ${SHELLS}"
@${CP} ${SHELLS} ${SHELLS}.bak
@(${GREP} -v ${PREFIX}/libexec/git-core/git-shell ${SHELLS}.bak; \
${ECHO_CMD} ${PREFIX}/libexec/git-core/git-shell) > ${SHELLS}
@${RM} ${SHELLS}.bak
diff --cc masterfiles/config/cfcadence.conf
index afd74f2,e222eaf..0000000
--- a/masterfiles/config/cfcadence.conf
+++ b/masterfiles/config/cfcadence.conf
@@@ -218,6 -217,11 +219,14 @@@ shellcommands
'/usr/bin/test ! -d /usr/bin/meld-1.5.2 && /usr/bin/wget http\://aptmaster.colo.elex.be/apt/redhat/rhel/tools/meld-1.5.2.tar.bz
chdir=/tmp useshell=true timeout=1200 umask=022 owner=root group=root inform=true
++<<<<<<< HEAD
++=======
@dnaeon
dnaeon / gist:3523664
Created August 30, 2012 07:16
pkg-plugin-foo
.include <bsd.own.mk>
LIB= pkg-plugin-foo
INCS= pkg-plugin-foo.h
WARNS= 6
PREFIX?= /usr/local
LIBDIR= ${PREFIX}/lib
INCLUDEDIR= ${PREFIX}/include
SHLIB_MAJOR= 0
@dnaeon
dnaeon / gist:3536548
Created August 30, 2012 18:23
pkg-plugins
### Display installed plugins
% pkg plugins
NAME DESC VERSION LOADED
stats Plugin for displaying package stats 1.0 YES
template Template plugin for pkgng 1.0 NO
zfssnap ZFS snapshot plugin for pkgng 1.0 YES
### Installing a package with plugins loaded
## Plugins installed
% pkg plugins
NAME DESC VERSION LOADED
stats Plugin for displaying package stats 1.0 YES
template Template plugin for pkgng 1.0 NO
zfssnap ZFS snapshot plugin for pkgng 1.0 YES
mystats Plugin command for displaying stats 1.0 YES
## Usage information with available commands
@dnaeon
dnaeon / gist:3635828
Created September 5, 2012 12:22
poudriere-clean
% sudo poudriere bulk -j 90amd64 -c
poudriere bulk parameters [options]
Parameters:
-f file -- Give the list of ports to build
Options:
-c -- Clean the previous built binary packages
-t -- Add some testings to package building
-s -- Skip sanity
@dnaeon
dnaeon / gist:3741876
Created September 18, 2012 07:52
pkg-plugins-summary
% env PKG_PLUGINS_SUMMARY=yes pkg plugins
Plugin(s) loaded: [ 'stats' 'zfssnap' 'mystats' 'serve' ]
Successfully loaded 4 plugin(s)
NAME DESC VERSION LOADED
stats Plugin for displaying package stats 1.0 YES
template Template plugin for pkgng 1.0 NO
zfssnap ZFS snapshot plugin for pkgng 1.0 YES
mystats Plugin command for displaying stats 1.0 YES
serve A mongoose plugin for serving files 1.0 YES
#include <sys/param.h>
#include <sys/jail.h>
#include <sys/uio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdio.h>