Advertisement
Emulatorman

makepkg.conf

Feb 22nd, 2012
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.23 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 -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. #########################################################################
  23. # ARCHITECTURE, COMPILE FLAGS
  24. #########################################################################
  25. #
  26. CARCH="i686"
  27. CHOST="i686-pc-linux-gnu"
  28.  
  29. #-- Compiler and Linker Flags
  30. # -march (or -mcpu) builds exclusively for an architecture
  31. # -mtune optimizes for an architecture, but builds for whole processor family
  32. CFLAGS="-march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -m32"
  33. CXXFLAGS="-march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -m32"
  34. LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu"
  35. #-- Make Flags: change this for DistCC/SMP systems
  36.  
  37. #########################################################################
  38. # BUILD ENVIRONMENT
  39. #########################################################################
  40. #
  41. # Defaults: BUILDENV=(fakeroot !distcc color !ccache check !sign)
  42. # A negated environment option will do the opposite of the comments below.
  43. #
  44. #-- fakeroot: Allow building packages as a non-root user
  45. #-- distcc: Use the Distributed C/C++/ObjC compiler
  46. #-- color: Colorize output messages
  47. #-- ccache: Use ccache to cache compilation
  48. #-- check: Run the check() function if present in the PKGBUILD
  49. #-- sign: Generate PGP signature file
  50. #
  51. #BUILDENV=(fakeroot !distcc color !ccache check !sign)
  52. BUILDENV=(fakeroot distcc color !ccache check !sign)
  53. #
  54. #-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
  55. #-- specify a space-delimited list of hosts running in the DistCC cluster.
  56. #DISTCC_HOSTS=""
  57. DISTCC_HOSTS="localhost 192.168.0.2"
  58. #
  59. #-- Specify a directory for package building.
  60. #BUILDDIR=/tmp/makepkg
  61.  
  62. #########################################################################
  63. # GLOBAL PACKAGE OPTIONS
  64. # These are default values for the options=() settings
  65. #########################################################################
  66. #
  67. # Default: OPTIONS=(strip docs libtool emptydirs zipman purge !upx)
  68. # A negated option will do the opposite of the comments below.
  69. #
  70. #-- strip: Strip symbols from binaries/libraries
  71. #-- docs: Save doc directories specified by DOC_DIRS
  72. #-- libtool: Leave libtool (.la) files in packages
  73. #-- emptydirs: Leave empty directories in packages
  74. #-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
  75. #-- purge: Remove files specified by PURGE_TARGETS
  76. #-- upx: Compress binary executable files using UPX
  77. #
  78. OPTIONS=(strip docs libtool emptydirs zipman purge !upx)
  79.  
  80. #-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
  81. INTEGRITY_CHECK=(md5)
  82. #-- Options to be used when stripping binaries. See `man strip' for details.
  83. STRIP_BINARIES="--strip-all"
  84. #-- Options to be used when stripping shared libraries. See `man strip' for details.
  85. STRIP_SHARED="--strip-unneeded"
  86. #-- Options to be used when stripping static libraries. See `man strip' for details.
  87. STRIP_STATIC="--strip-debug"
  88. #-- Manual (man and info) directories to compress (if zipman is specified)
  89. MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
  90. #-- Doc directories to remove (if !docs is specified)
  91. DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
  92. #-- Files to be removed from all packages (if purge is specified)
  93. PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
  94.  
  95. #########################################################################
  96. # PACKAGE OUTPUT
  97. #########################################################################
  98. #
  99. # Default: put built package and cached source in build directory
  100. #
  101. #-- Destination: specify a fixed directory where all packages will be placed
  102. #PKGDEST=/home/packages
  103. #-- Source cache: specify a fixed directory where source files will be cached
  104. #SRCDEST=/home/sources
  105. #-- Source packages: specify a fixed directory where all src packages will be placed
  106. #SRCPKGDEST=/home/srcpackages
  107. #-- Packager: name/email of the person or organization building packages
  108. #PACKAGER="John Doe <john@doe.com>"
  109. #-- Specify a key to use for package signing
  110. #GPGKEY=""
  111.  
  112. #########################################################################
  113. # EXTENSION DEFAULTS
  114. #########################################################################
  115. #
  116. # WARNING: Do NOT modify these variables unless you know what you are
  117. # doing.
  118. #
  119. PKGEXT='.pkg.tar.xz'
  120. SRCEXT='.src.tar.gz'
  121.  
  122. # vim: set ft=sh ts=2 sw=2 et:
  123. PKGDEST="/pkgdest"
  124. SRCDEST="/srcdest"
  125. MAKEFLAGS='-j4'
  126. PACKAGER='André Silva <andre.paulista@adinet.com.uy>'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement