Skip to content

Instantly share code, notes, and snippets.

Avatar

Bryan Drewery bdrewery

View GitHub Profile
View gist:6618d33d392b5f9ec1cd0bf10b81ae0c
diff --git src/share/poudriere/testport.sh src/share/poudriere/testport.sh
index d8f0124da..d04f8c48b 100755
--- src/share/poudriere/testport.sh
+++ src/share/poudriere/testport.sh
@@ -217,11 +217,11 @@ if [ $CONFIGSTR -eq 1 ]; then
command -v dialog4ports >/dev/null 2>&1 || err 1 "You must have ports-mgmt/dialog4ports installed on the host to use -c."
__MAKE_CONF=$(mktemp -t poudriere-make.conf)
setup_makeconf "${__MAKE_CONF}" "${JAILNAME}" "${PTNAME}" "${SETNAME}"
- PORTSDIR=${portsdir} \
+ PORTSDIR="${MASTERMNT}${portsdir}" \
View gist:863d60636cd93af0636f5f1feb879f24
diff --git src/share/poudriere/common.sh src/share/poudriere/common.sh
index c4d5673dd..96c431ee5 100644
--- src/share/poudriere/common.sh
+++ src/share/poudriere/common.sh
@@ -6783,8 +6783,11 @@ _listed_ports() {
{
# -f specified
if [ -z "${LISTPORTS}" ]; then
+ local _ignore_comments
+
View gist:772f232fe128cd074df49d4ebf6a47ae
diff --git src/share/poudriere/common.sh src/share/poudriere/common.sh
index c4d5673dd..1fe68ce95 100644
--- src/share/poudriere/common.sh
+++ src/share/poudriere/common.sh
@@ -2268,6 +2268,7 @@ setup_ccache() {
WITH_CCACHE_BUILD=yes
CCACHE_DIR=${HOME}/.ccache
EOF
+ chmod o+rx "${tomnt}${HOME}/.ccache"
fi
View gist:f36d2e6207ccc7aa7c0f6e3d0b891873
diff --git src/bin/poudriere.in src/bin/poudriere.in
index df58f5093..386807af7 100644
--- src/bin/poudriere.in
+++ src/bin/poudriere.in
@@ -163,7 +163,7 @@ esac
# Special-case environment passthroughs.
while read envvar; do
case "${envvar}" in
- FETCH_BIND_ADDRESS|FTP_*|ftp_*|HTTP_*|http_*|SSL_|NO_PROXY|no_proxy)
+ FETCH_BIND_ADDRESS|FTP_*|ftp_*|HTTP_*|http_*|SSL_|NO_PROXY|no_proxy|HOME)
View git-fossil.sh
#! /bin/sh
# :vim setf sh:
#
# Copyright (c) 2013 Bryan Drewery <bryan@shatow.net>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
View bsd.alt.mk
DEFAULT_VERSIONS+= znc=1.6
# XXX: All the symlinks on the main files should be done via a script and the
# port should supply ALT_FILES via PKG_NOTES.
# Port configuration
ALT_VER_EPOCH= 14
ALT_FILES+= \
bin/znc bin/znc${ALT_VER} \
View split-package\Uses.local\split-package.sh
#! /bin/sh
. ${SCRIPTSDIR}/functions.sh
MOVE_FILES=$(mktemp -t tar_files)
PLIST_FILES=$(mktemp -t plist_files)
PLIST_DIRS=/dev/null
SED_FILE=$(mktemp -t sed_file)
PARSE_COMMENTS=1
parse_plist "${PREFIX}" ${PARSE_COMMENTS} < "${TMPPLIST}" 3>${PLIST_DIRS} \
@bdrewery
bdrewery / convert.sh
Created Apr 12, 2014
pkg_install conversion script
View convert.sh
#! /bin/sh
#
# Copyright (c) 2014 Bryan Drewery <bdrewery@FreeBSD.org>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
@bdrewery
bdrewery / mfc.sh
Last active Jun 25, 2018
FreeBSD MFC script
View mfc.sh
#! /bin/sh
#
# Copyright (c) 2014 Bryan Drewery <bdrewery@FreeBSD.org>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
View keybase.md

Keybase proof

I hereby claim:

  • I am bdrewery on github.
  • I am bdrewery (https://keybase.io/bdrewery) on keybase.
  • I have a public key whose fingerprint is F917 3CB2 C3AA EA7A 5C8A 1F09 35D7 71BB 6E46 97CF

To claim this, I am signing this object: