Skip to content

Instantly share code, notes, and snippets.

therealromster

Block or report user

Report or block therealromster

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@therealromster
therealromster / ports-1.5_permissions.patch
Created Feb 27, 2019
crux ports permisions as user pkgmk
View ports-1.5_permissions.patch
diff -pruN ports-1.5.orig ports-1.5
--- ports-1.5.orig/ports.in 2004-03-08 07:55:24.000000000 +1100
+++ ports-1.5/ports.in 2009-01-14 16:53:29.000000000 +1100
@@ -118,6 +118,11 @@
fi
}
+fix_permissions() {
+ chown -R pkgmk:pkgmk "${PORTS_DIR}"
+ find "${PORTS_DIR}" -type d -exec chmod 0775 {} \;
View gist:9e34bd7fa3417a46a78a24baad87a94a
$ diff -u ~/bin/finddeps /usr/bin/finddeps
--- /home/romster/bin/finddeps 2018-07-22 23:06:23.082149567 +1000
+++ /usr/bin/finddeps 2017-11-12 16:57:47.000000000 +1100
@@ -8,11 +8,11 @@
version=1.9.1
pkgdb="/var/lib/pkg/db"
-export LD_LIBRARY_PATH=/lib:/usr/lib:/lib32:/usr/lib32:$LD_LIBRARY_PATH
+export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/X11/lib:$LD_LIBRARY_PATH
@therealromster
therealromster / build-contrib.sh
Created Jul 1, 2017
Build packages that depend on package and work though the tree while reducing the need to remove every package for each build
View build-contrib.sh
#!/bin/bash
cd /usr/ports/contrib
for a in $(for b in $(for b in $(for d in *; do
prt-get quickdep $d
done \
| sort | uniq | awk '{print NF" "$0}' | sort -gr | cut -d' ' -f2- | awk '{print $(NF-1)"/"$NF}' | sort); do
echo $b; done \
| sed -e 's|^/.*||g' -e '/^\s*$/d'); do
@therealromster
therealromster / Pkgfile
Created Jun 21, 2017
zlib-compat for Krita appimage
View Pkgfile
# Description: A compression/decompression Library
# URL: http://www.zlib.net/
# Maintainer: CRUX System Team, core-ports at crux dot nu
name=zlib-compat
version=1.2.9
release=1
#source=(http://www.zlib.net/$name-$version.tar.gz)
source=(http://zlib.net/fossils/zlib-$version.tar.gz)
@therealromster
therealromster / fcron.log
Created Mar 12, 2017
opt/fcron fails to build asks to create user despite pre-install script (built in docker as root)
View fcron.log
prt-get: installing /usr/ports/opt/fcron
groupadd: GID '45' already exists
useradd: group 'fcron' does not exist
passwd: user 'fcron' does not exist
=======> Building '/var/ports/packages/fcron#3.2.1-1.pkg.tar.xz'.
bsdtar -p -o -C /usr/ports/opt/fcron/work/src -xf /usr/ports/opt/fcron/fcron-3.2.1.src.tar.gz
cp fcron /usr/ports/opt/fcron/work/src
cp systab.orig /usr/ports/opt/fcron/work/src
+ build
+ cd fcron-3.2.1
@therealromster
therealromster / gist:5890f5ccc5ac9dd08880abd1853df5aa
Created Nov 5, 2016
prtsweep should ignore httpup if not found
View gist:5890f5ccc5ac9dd08880abd1853df5aa
# prtsweep -a -d
awk: fatal: cannot open file `/etc/ports/*.httpup' for reading (No such file or directory)
=======> /usr/ports/contrib/dev86
+ removing file dev86-copt.patch
=======> /usr/ports/contrib/ladspa
+ removing file ladspa-1.12.patch
=======> /usr/ports/contrib/lxmusic
+ removing file post-remove
=======> /usr/ports/contrib/lxpanel
+ removing file gmodule_link.patch
View gist:7440a92a12c27f07c0c8
mesa3d:/usr/lib/dri/i915_dri.so:libnettle.so.6: missing library
mesa3d:/usr/lib/dri/i915_dri.so: error
mesa3d:/usr/lib/dri/i965_dri.so:libnettle.so.6: missing library
mesa3d:/usr/lib/dri/i965_dri.so: error
mesa3d:/usr/lib/dri/kms_swrast_dri.so:libnettle.so.6: missing library
mesa3d:/usr/lib/dri/kms_swrast_dri.so: error
mesa3d:/usr/lib/dri/nouveau_dri.so:libnettle.so.6: missing library
mesa3d:/usr/lib/dri/nouveau_dri.so: error
mesa3d:/usr/lib/dri/nouveau_vieux_dri.so:libnettle.so.6: missing library
mesa3d:/usr/lib/dri/nouveau_vieux_dri.so: error
View Pkgfile
# Description: An OpenType text shaping engine
# URL: http://www.freedesktop.org/wiki/Software/HarfBuzz
# Maintainer: Fredrik Rinnestam, fredrik at crux dot nu
# Depends on: cairo
name=harfbuzz-1.1
version=1.1.2
release=1
source=(http://www.freedesktop.org/software/harfbuzz/release/harfbuzz-$version.tar.bz2)
View gist:2e1819d5267feff16d82
$ uprecords
# Uptime | System Boot up
----------------------------+---------------------------------------------------
1 336 days, 08:19:55 | Linux 3.6.10 Wed Oct 2 12:20:51 2013
2 229 days, 20:40:34 | Linux 3.6.10 Sun May 3 17:58:10 2015
3 170 days, 14:24:52 | Linux 3.6.10 Sun Apr 14 20:29:30 2013
4 158 days, 18:30:49 | Linux 3.6.10 Tue Nov 25 23:29:50 2014
5 83 days, 01:32:30 | Linux 3.6.10 Wed Sep 3 20:55:23 2014
6 79 days, 03:17:08 | Linux 3.6.10 Fri Jan 25 10:36:09 2013
-> 7 76 days, 21:02:43 | Linux 3.6.10 Sat Dec 19 14:52:26 2015
View gist:d0a6f8602a6e1b50d95b
$ uprecords
# Uptime | System Boot up
----------------------------+---------------------------------------------------
1 149 days, 22:36:40 | Linux 3.18.11 Wed Apr 8 21:51:39 2015
-> 2 122 days, 19:48:51 | Linux 3.18.23 Tue Nov 3 17:01:28 2015
3 58 days, 17:55:18 | Linux 3.18.21 Sat Sep 5 22:05:10 2015
4 21 days, 18:53:14 | Linux 3.18.9 Sun Mar 15 20:49:25 2015
5 14 days, 17:14:37 | Linux 3.17.7 Sat Feb 28 23:48:37 2015
6 9 days, 19:37:23 | Linux 3.17.7 Sun Feb 15 00:17:54 2015
7 7 days, 20:39:55 | Linux 3.17.7 Wed Jan 28 23:25:13 2015
You can’t perform that action at this time.