Advertisement
msx

/etc/makepkg.conf

msx
Sep 7th, 2014
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.80 KB | None | 0 0
  1. ~/t/jailkit > cat /etc/makepkg.conf
  2. #
  3. # /etc/makepkg.conf
  4. #
  5.  
  6. #########################################################################
  7. # SOURCE ACQUISITION
  8. #########################################################################
  9. #
  10. #-- The download utilities that makepkg should use to acquire sources
  11. # Format: 'protocol::agent'
  12. DLAGENTS=('ftp::/usr/bin/curl -fC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
  13. 'http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
  14. 'https::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
  15. 'rsync::/usr/bin/rsync --no-motd -z %u %o'
  16. 'scp::/usr/bin/scp -C %u %o')
  17.  
  18. # Other common tools:
  19. # /usr/bin/snarf
  20. # /usr/bin/lftpget -c
  21. # /usr/bin/wget
  22.  
  23. #########################################################################
  24. # ARCHITECTURE, COMPILE FLAGS
  25. #########################################################################
  26. #
  27. CARCH="x86_64"
  28. CHOST="x86_64-hauva-linux-gnu"
  29.  
  30. #-- Compiler and Linker Flags
  31. # -march (or -mcpu) builds exclusively for an architecture
  32. # -mtune optimizes for an architecture, but builds for whole processor family
  33. CPPFLAGS="-D_FORTIFY_SOURCE=2"
  34. CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4"
  35. CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4"
  36. LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro"
  37. #-- Make Flags: change this for DistCC/SMP systems
  38. MAKEFLAGS="-j4"
  39. #-- Debugging flags
  40. #DEBUG_CFLAGS="-g -fvar-tracking-assignments"
  41. #DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
  42.  
  43. #########################################################################
  44. # BUILD ENVIRONMENT
  45. #########################################################################
  46. #
  47. # Defaults: BUILDENV=(fakeroot !distcc color !ccache check !sign)
  48. # A negated environment option will do the opposite of the comments below.
  49. #
  50. #-- fakeroot: Allow building packages as a non-root user
  51. #-- distcc: Use the Distributed C/C++/ObjC compiler
  52. #-- color: Colorize output messages
  53. #-- ccache: Use ccache to cache compilation
  54. #-- check: Run the check() function if present in the PKGBUILD
  55. #-- sign: Generate PGP signature file
  56. #
  57. BUILDENV=(fakeroot !distcc color ccache check !sign)
  58. #
  59. #-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
  60. #-- specify a space-delimited list of hosts running in the DistCC cluster.
  61. #DISTCC_HOSTS=""
  62. #
  63. #-- Specify a directory for package building.
  64. #BUILDDIR=/home/tmp/makepkg
  65.  
  66. #########################################################################
  67. # GLOBAL PACKAGE OPTIONS
  68. # These are default values for the options=() settings
  69. #########################################################################
  70. #
  71. # Default: OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !upx !debug)
  72. # A negated option will do the opposite of the comments below.
  73. #
  74. #-- strip: Strip symbols from binaries/libraries
  75. #-- docs: Save doc directories specified by DOC_DIRS
  76. #-- libtool: Leave libtool (.la) files in packages
  77. #-- staticlibs: Leave static library (.a) files in packages
  78. #-- emptydirs: Leave empty directories in packages
  79. #-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
  80. #-- purge: Remove files specified by PURGE_TARGETS
  81. #-- upx: Compress binary executable files using UPX
  82. #-- debug: Add debugging flags as specified in DEBUG_* variables
  83. #
  84. OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge upx !debug)
  85.  
  86. #-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
  87. INTEGRITY_CHECK=(md5)
  88. #-- Options to be used when stripping binaries. See `man strip' for details.
  89. STRIP_BINARIES="--strip-all"
  90. #-- Options to be used when stripping shared libraries. See `man strip' for details.
  91. STRIP_SHARED="--strip-unneeded"
  92. #-- Options to be used when stripping static libraries. See `man strip' for details.
  93. STRIP_STATIC="--strip-debug"
  94. #-- Manual (man and info) directories to compress (if zipman is specified)
  95. MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
  96. #-- Doc directories to remove (if !docs is specified)
  97. DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
  98. #-- Files to be removed from all packages (if purge is specified)
  99. PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
  100.  
  101. #########################################################################
  102. # PACKAGE OUTPUT
  103. #########################################################################
  104. #
  105. # Default: put built package and cached source in build directory
  106. #
  107. #-- Destination: specify a fixed directory where all packages will be placed
  108. #PKGDEST=/home/packages
  109. #-- Source cache: specify a fixed directory where source files will be cached
  110. #SRCDEST=/home/sources
  111. #-- Source packages: specify a fixed directory where all src packages will be placed
  112. #SRCPKGDEST=/home/srcpackages
  113. #-- Log files: specify a fixed directory where all log files will be placed
  114. #LOGDEST=/home/makepkglogs
  115. #-- Packager: name/email of the person or organization building packages
  116. PACKAGER="msx <archlinux.us: msx>"
  117. #-- Specify a key to use for package signing
  118. #GPGKEY=""
  119.  
  120. #########################################################################
  121. # COMPRESSION DEFAULTS
  122. #########################################################################
  123. #
  124. COMPRESSGZ=(gzip -c -f -n)
  125. COMPRESSBZ2=(bzip2 -c -f)
  126. COMPRESSXZ=(xz -c -z -)
  127. COMPRESSLRZ=(lrzip -q)
  128. COMPRESSLZO=(lzop -q)
  129. COMPRESSZ=(compress -c -f)
  130.  
  131. #########################################################################
  132. # EXTENSION DEFAULTS
  133. #########################################################################
  134. #
  135. # WARNING: Do NOT modify these variables unless you know what you are
  136. # doing.
  137. #
  138. PKGEXT='.pkg.tar.xz'
  139. SRCEXT='.src.tar.gz'
  140.  
  141. # vim: set ft=sh ts=2 sw=2 et:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement