Skip to content

Instantly share code, notes, and snippets.

# 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
@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:
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:2318136
Created April 6, 2012 08:22
compat8x-amd64-8.2.802000.201203
tinderbox# pkg update
http://pkgbeta.freebsd.org/freebsd-9-amd64/2012-04-01/repo.txz 100% 11MB 236.8KB/s 162.3KB/s 00:49
tinderbox# pkg install compat8x-amd64-8.2.802000.201203
The following packages will be installed:
Installing compat8x-amd64: 8.2.802000.201203
the installation will require 1 MB more space
439 kB to be downloaded
Proceed with installing packages [y/N]: y
fgrep use_pkg $(which portmaster ) <[2595][11:20]]
[ -n "$use_pkgng" ] &&
if [ -z "$use_pkgng" ]; then
if [ -z "$use_pkgng" ]; then
if [ -z "$use_pkgng" ]; then
if [ -z "$use_pkgng" ]; then
if [ -e "$pdb/$1/+IGNOREME" ] && ( [ -z "$use_pkgng" ] || pkg info -e $1 ); then
if [ -z "$use_pkgng" ]; then
if [ -z "$use_pkgng" ]; then
if [ -d "$pdb/$OPTARG" ] && ( [ -z "$use_pkgng" ] || pkg info -e $OPTARG ); then
# grep use_pkgng /usr/local/etc/portmaster.rc
use_pkgng=yes
# portmaster math/gmp
<< SNIP >>
===> Installing for gmp-5.0.4
===> Generating temporary packing list
===> Checking if math/gmp already installed
@dnaeon
dnaeon / gist:1986673
Created March 6, 2012 14:55
firewall
Priority Action Service Source Iface Source Destination
1 ALLOW DNS LAN ANY 10.32.240.136
2 ALLOW DNS LAN ANY 10.35.80.213
3 DENY SQUID LAN ANY 10.35.80.200
4 ALLOW ALL PROTOCOLS ANY ANY 10.35.80.198
5 DENY ALL PROTOCOLS ANY ANY 10.0.0.0-10.255.255.255
@dnaeon
dnaeon / gist:1940520
Created February 29, 2012 12:38
swiftest configuration
# vim: ts=8:sts=8:noexpandtab
control:
AddInstallable = ( copy_new_conf )
swiftest_data = ( "/var/lib/swiftest" )
swiftest_conf = ( "/etc/swiftest/config" )
filebridge_conf = ( "/etc/swiftest-filebridge" )
diff --git a/masterfiles/config/cfgroups.conf b/masterfiles/config/cfgroups.conf
index 8692d67..10ba033 100644
--- a/masterfiles/config/cfgroups.conf
+++ b/masterfiles/config/cfgroups.conf
@@ -1657,8 +1657,12 @@ pptp_vserverhost =
intranetservers = (
plonelenny-test.elex.be
+ plone4-test.elex.be
)
@dnaeon
dnaeon / gist:1689162
Created January 27, 2012 15:00
pfus 2.0.26
mra:(~/PROJECTS/cfengine/masterfiles/config)> cat ~/RFC-6570.patch <[1788][16:58]]
From 15e5d0447f8d68744a791aa672a3960c6deb3c2d Mon Sep 17 00:00:00 2001
From: Marin Atanasov Nikolov <[email protected]>
Date: Fri, 27 Jan 2012 16:54:17 +0200
Subject: [PATCH] RFC-6570: Update PFUS package to version 2.0.26
---
masterfiles/config/cfpfus2.conf | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)