Advertisement
Red-ex

makepkg.conf

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