User:Yeti
From NetBSD Wiki
Contents |
why not make supfiles executable?
#!/usr/pkg/bin/csup
*default host=cvsup.se.netbsd.org
*default delete use-rel-suffix # ???
*default umask=002
*default compress
*default base=/home/netbsd
netbsd-src prefix=/home/netbsd release=cvs tag=netbsd-5-0
This file made executable will do what you might expect: csup netbsd-5-0 sources... For now I like having this as single update command for one cvs module, let's see how long...
setting package specific variables in mk.conf and other mysteries
.ifdef BSD_PKG_MK
#
# definitions to take action when doing pkgsrc work
# =================================================
#
# refuse to build packages with known vulnerabilities
#
ALLOW_VULNERABLE_PACKAGES=NO
#
# sites where to look for packages (bin-install)
#
# empty, because I need to roll my own pacages due to non-default
# configuration, e.g. using modular Xorg...
#
BINPKG_SITES=
#
# keep ccache's cache tree side by side to PKGSRCDIR
#
CCACHE_DIR=${PKGSRCDIR}.ccache
#
# use gcc's version info as hash
#
CCACHE_HASH=gcc -v ; true
#
# where to drop downloaded stuff
#
DISTDIR=${PKGSRCDIR}.distfiles
#
# keep the dual xeon with hyperthreads really busy
#
MAKE_JOBS=10
#
# where to put packages
#
PACKAGES=${PKGSRCDIR}.packages
#
# location of pkgsrc tree
#
PKGSRCDIR=/home/pkgsrc
#
# use ccache (see other CCACHE_* vars too!)
#
PKGSRC_COMPILER=ccache gcc
#
# put rc files into /etc/rc.d automagically
#
PKG_RCD_SCRIPTS=YES
#
# comprrss built packages using bzip2 instead of using gzip
#
PKG_SUFX=.tbz
#
# store object files in an own hierarchy
#
WRKOBJDIR=${PKGSRCDIR}.work
#
# use modular Xorg from pkgsrc instead of the x-sets
#
# see http://wiki.netbsd.se/How_to_install_modular_Xorg
#
X11_TYPE=modular
#
# catch PKGPATH being undefined or e.g. pkg_rolling-replace goes nuts
#
.ifdef PKGPATH
#
# per package definitions
#
.if ${PKGPATH} == "lang/sun-jdk15"
#
ACCEPTABLE_LICENSES+=sun-jdk6-license
ALLOW_VULNERABLE_PACKAGES=sigh
#
.elif ${PKGPATH} == "lang/sun-jre15"
#
ACCEPTABLE_LICENSES+=sun-jre6-license
ALLOW_VULNERABLE_PACKAGES=sigh
#
.elif ${PKGPATH} == "wip/jdk15"
#
ACCEPTABLE_LICENSES+=sun-jrl-16-license
MAKE_JOBS_SAFE=NO
#
.elif ${PKGPATH} == "wip/jdk16"
#
ACCEPTABLE_LICENSES+=sun-jrl-16-license
MAKE_JOBS_SAFE=NO
#
.elif ${PKGPATH} == "x11/openmotif"
#
ACCEPTABLE_LICENSES+=openmotif-license
#
.endif # PKGPATH if chain
#
.endif # def PKGPATH
#
.else # ifdef BSD_PKG_MK
#
# definitions to take action when NOT doing pkgsrc work
# =====================================================
#
# this probably will be compiling NetBSD's sources
#
.endif # ifdef BSD_PKG_MK
minimal (?) modular XOrg install
A ports' Makefile fragment...
DEPENDS+= modular-xorg-server-[0-9]*:../../x11/modular-xorg-server DEPENDS+= xauth-[0-9]*:../../x11/xauth DEPENDS+= xinit-[0-9]*:../../x11/xinit DEPENDS+= xset-[0-9]*:../../x11/xset DEPENDS+= xrdb-[0-9]*:../../x11/xrdb # i prefer keeping xterm for e.g. the display manager's failsafe login DEPENDS+= xterm-[0-9]*:../../x11/xterm # not necessary when adding gnome, kde or other environments with own WM and DM: #DEPENDS+= twm-[0-9]*:../../wm/twm #DEPENDS+= xdm-[0-9]*:../../x11/xdm DEPENDS+= modular-xorg-fonts-[0-9]*:../../meta-pkgs/modular-xorg-fonts DEPENDS+= xf86-input-keyboard-[0-9]*:../../x11/xf86-input-keyboard DEPENDS+= xf86-input-mouse-[0-9]*:../../x11/xf86-input-mouse # add the xf86-video-* matching your hardware... DEPENDS+= xf86-video-santaclaus-[0-9]*:../../x11/xf86-video-santaclaus
my dmesg collection
...now is propperly categorized to category dmesg, so this lill index may vanish some day without prior notice...
