aboutsummaryrefslogtreecommitdiffstats
path: root/core/ports.html
diff options
context:
space:
mode:
authorSilvino Silva <silvino@bk.ru>2017-08-02 01:04:50 +0100
committerSilvino Silva <silvino@bk.ru>2017-08-02 01:04:50 +0100
commitb1b5779493352c72cced0251625d0b850ebac5b8 (patch)
tree0f40548a2b5c8eaf9bd99423e21b8baf63b83d65 /core/ports.html
parented23bb3344ec5be2893db8d8d838c38c9f2baacd (diff)
parent65167272a3ba52dc4d032a1c60a9ff030408047d (diff)
downloaddoc-b1b5779493352c72cced0251625d0b850ebac5b8.tar.gz
new release 0.3.1
Diffstat (limited to 'core/ports.html')
-rw-r--r--core/ports.html28
1 files changed, 17 insertions, 11 deletions
diff --git a/core/ports.html b/core/ports.html
index 1d06877..6a5e4a8 100644
--- a/core/ports.html
+++ b/core/ports.html
@@ -20,10 +20,11 @@
Add a user that will be used by ports tools, this example pkgmk;</p>
<pre>
- # useradd -U -m -d /usr/ports -s /bin/false pkgmk
+ # useradd -U -M -d /usr/ports -s /bin/false pkgmk
</pre>
- <p>You can add your self to group pkgmk,</p>
+ <p>You can add your self to group pkgmk. Check if members of this
+ group are under <a href="linux.html#sysctl">tpe</a> protection.</p>
<pre>
# usermod -a -G pkgmk c9admin
@@ -61,13 +62,13 @@
<p>Edit fstab, change uid to id of pkgmk, this example 102;</p>
<pre>
- pkgmk /usr/ports/work tmpfs size=30G,uid=102,defaults 0 0
+ pkgmk /usr/ports/work tmpfs size=30G,uid=102,defaults,mode=0750 0 0
</pre>
<h2 id="pkgmk">1.3.3. Configure pkgmk</h2>
- <p>Read <a href="https://crux.nu/Handbook3-2#ntoc22">4.5. Adjust/Configure the Package Build Process</a>
+ <p>Read <a href="https://crux.nu/Handbook3-3#ntoc22">4.5. Adjust/Configure the Package Build Process</a>
to take advantage of your specific hardware. Packages build with
native flag will not run on different hardware. This is the best choice
if you want gcc to find the best settings based on your hardware.</p>
@@ -107,7 +108,7 @@
# /etc/pkgmk.conf: pkgmk(8) configuration
#
- export CFLAGS="-O2 -march=x86-64"
+ export CFLAGS="-O2 -march=native -mtune=native"
export CXXFLAGS="${CFLAGS}"
export MAKEFLAGS="-j4"
@@ -127,7 +128,7 @@
;;
esac
- PKGMK_SOURCE_MIRRORS=(http://crux.nu/distfiles/)
+ #PKGMK_SOURCE_MIRRORS=(http://crux.nu/distfiles/)
PKGMK_SOURCE_DIR="/usr/ports/distfiles"
PKGMK_PACKAGE_DIR="/usr/ports/packages"
PKGMK_WORK_DIR="/usr/ports/work/$name"
@@ -154,6 +155,15 @@
# note: the order matters: the package found first is used
prtdir /usr/ports/core
+
+ # ports described on this documentation
+ prtdir /usr/ports/c9-ports
+
+ # 6c37 team provides a collection with freetype-iu, fontconfig-iu
+ # and cairo-iu ports.
+ prtdir /usr/ports/6c37
+ prtdir /usr/ports/6c37-dropin
+
prtdir /usr/ports/opt
prtdir /usr/ports/xorg
@@ -163,10 +173,6 @@
# the following line enables the user maintained contrib collection
prtdir /usr/ports/contrib
- # 6c37 team provides a collection with freetype-iu, fontconfig-iu
- # and cairo-iu ports.
- #prtdir /usr/ports/6c37
-
### use mypackage form local directory
# prtdir /home/packages/build:mypackage
@@ -198,7 +204,7 @@
### EXPERT SECTION ###
### alternative commands
- makecommand sudo -H -u pkgmk fakeroot pkgmk
+ makecommand sudo -H -u pkgmk -g pkgmk fakeroot pkgmk
addcommand sudo pkgadd
removecommand sudo pkgrm
runscriptcommand sudo sh