Skip to content

Instantly share code, notes, and snippets.

@rootwyrm
Last active December 6, 2019 22:15
Show Gist options
  • Select an option

  • Save rootwyrm/646c8cc97a4c626670adde5fc42ba61f to your computer and use it in GitHub Desktop.

Select an option

Save rootwyrm/646c8cc97a4c626670adde5fc42ba61f to your computer and use it in GitHub Desktop.
Terrible ideas from RootWyrm
## These are things that I have come up with which are extremely hazardous to your health.
## Don't tell portmgr@
.include <bsd.port.pre.mk>
USES=kmod
# XXX: Might require SSP_UNSAFE set true
LOCAL_SRC_BASE=${LOCAL_BASE}/src
# You REALLY need KMODDIR unless you want it dumped in /boot/kernel
KMODDIR=${LOCAL_BASE}/share/terrible
do-build:
if [ -d /usr/src ]; blah blah you know what to do...
cp -pR /usr/src ${LOCAL_BASE}/src stuff...
for stuff in whatever; do ${MAKE} SRC_BASE=${LOCAL_SRC_BASE} ARCH=$$arch Your Ad Here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment