# /usr/libexec/src2pkg/DEFINES # src2pkg version 1.9.5 ## src2pkg (formerly PkgBuild) - Copyright 2005-2008 Gilbert Ashley ## src2pkg is free software released under the GNU General Public License Version 2 # This file defines some of the variables for src2pkg which, in some cases, # a user might want or need to edit to change basic default behaviours of src2pkg. # The syntax used in this file defines variables in such a way # that they can still be overridden when needed. ! [[ $VAR ]] && VAR=VALUE # means if VAR is not given then set VAR to VALUE. Doing it this way still lets you # override the defaults for any package which needs it. # This syntax is what allows you to pass command-line arguments or script # commands which override these defaults. Once given like this: VAR=VALUE # the VAR will always be VALUE, unless explicitly overridden later. # Still, the best place to set any such variables is in your configurattion file # in /etc/src2pkg/src2pkg.conf The src2pkg.conf file is not overwritten when # you upgrade to a newer version of src2pkg, so your changes will not be lost. # It is also not removed if you uninstall srcpkg. # This DEFINES file *is* overwritten if you upgrade and will be removed if # you uninstall src2pkg. Please use the conf file for any changes you want to make, # but use the same syntax as found in this file for maximum flexibility. # The src2pkg.conf file contains helpful notes to guide you in setting up any # variable which you might normally want or need to change. #####------------------ src2pkg Defaults --------------------------##### ! [[ $QUIET = "NO" ]] && QUIET="YES" ! [[ $COLOR_PROMPT = "NO" ]] && COLOR_PROMPT="YES" # This replaces CREATOR and is the default signature in slack-desc(PKG_DESC) # and gets written to the 11th line of the file. [[ $SIGNATURE ]] && BLURB_11="$SIGNATURE" ! [[ $BLURB_11 ]] && BLURB_11="Packaged by src2pkg" # SIG is a suffix to BUILD for signing packages ! [[ $SIG ]] && SIG="" # Don't change things below here unless you really know what you are doing. # These are the best known 'sane' defaults for building conformant packages. # By default most sources install to /usr/local, but that's for locally-compiled sources # which are not packaged. # Software for packages should install with prefix of /usr or /opt/pkgname usually. ! [[ $PRE_FIX ]] && PRE_FIX="/usr" # Here's where the standardized directories can be given, such as --sysconfdir=/etc --localstatedir=/var/lib . # ! [[ $STD_CONFIGS ]] && STD_CONFIGS="--sysconfdir=/etc --localstatedir=/var/lib " # We leave this blank to avoid breaking some builds. Add any needed configure options to EXTRA_CONFIGS # in your src2pkg script -this is just the sort of one-off build requirement that is best documented there. ! [[ $STD_CONFIGS ]] && STD_CONFIGS="" # Extra arguments to the compiler, usually architecture specific stuff # An example for ix86 would be this:"-fomit-frame-pointer" or "-Wall" # ! [[ $EXTRA_FLAGS ]] && EXTRA_FLAGS="-Wall" # We leave this blank by default ! [[ $EXTRA_FLAGS ]] && EXTRA_FLAGS="" # these two are now done automatically in the get_flags function # If you are using x86_64 architecture you may wish to use '--libdir=/usr/lib64' here so it is always added # ! [[ $STD_CONFIGS ]] && STD_CONFIGS="--libdir=/usr/lib64" # For x86_64 architecture you'll need this here # ! [[ $EXTRA_FLAGS ]] && EXTRA_FLAGS="-fPIC" # Binary and library strip commands # binaries are not usually sensitive to stripping. "-p --strip-unneeded" should always be safe. # This:"-p -strip-all" strips even smaller, but is also sometimes risky, especially for libraries. # It also marks all objects as stripped, even if nothing was stripped. Use with caution ! [[ $BIN_STRIP_COMMAND ]] && BIN_STRIP_COMMAND="-p --strip-unneeded" # --strip-unneeded seems to work fine for most libraries. Use "-p --strip-debug" if you have any problems ! [[ $LIB_STRIP_COMMAND ]] && LIB_STRIP_COMMAND="-p --strip-unneeded" # Always stripping seems safe as the default. I've had no problems using the above options. ! [[ $STRIP_BINS ]] && STRIP_BINS="YES" ! [[ $STRIP_LIBS ]] && STRIP_LIBS="YES" # If you need to keep libraries unstripped put STRIP_LIBS="NO" in your build script. # Using bzip2 by default would be alright, but saves little space in this case. gzip is standard. # Note that using SAVE_SPACE changes this to bzip2 ! [[ $MAN_COMPRESS ]] && MAN_COMPRESS="gzip -9" # These 4 set up a standard build environment that behaves like SlackBuild scripts ! [[ $SOURCES_DIR ]] && SOURCES_DIR=$CWD # SRC_BUILDS_DIR is the directory where the sources get built ! [[ $SRC_BUILDS_DIR ]] && SRC_BUILDS_DIR="/tmp" # PKG_BUILDS_DIR -where packages are pre-installed and assembled ! [[ $PKG_BUILDS_DIR ]] && PKG_BUILDS_DIR="/tmp" # PKG_DEST_DIR -where assembled packages are left ! [[ $PKG_DEST_DIR ]] && PKG_DEST_DIR="/tmp" # libsentry needs a backup path -usually the same as SRC_BUILDS_DIR ! [[ $BACKUP_DIR ]] && BACKUP_DIR="/tmp" # If you specify KEEP_BACKUPS=YES a .tgz archive is created in: ! [[ $BACKUPS_SAVE_DIR ]] && BACKUPS_SAVE_DIR="/tmp" ## Package corrections preferences ! [[ $CORRECT_NAMES ]] && CORRECT_NAMES="YES" ! [[ $CORRECT_MANS ]] && CORRECT_MANS="YES" ! [[ $CORRECT_DOCS ]] && CORRECT_DOCS="YES" ## even if you use the recommended corrections above, it # may be useful to not correct some or all perms (CVS SVN ?) sometimes ! [[ $CORRECT_PERMS ]] && CORRECT_PERMS="YES" ! [[ $CORRECT_SUID_PERMS ]] && CORRECT_SUID_PERMS="YES" ## AUTO_PATCH ! [[ $AUTO_PATCH ]] && AUTO_PATCH="YES" # allow some compatibility for other package systems ! [[ $PKG_DESC ]] && [[ -e /etc/jaguar-version ]] && PKG_DESC="desc" ! [[ $PKG_DESC ]] && PKG_DESC="slack-desc" ! [[ $PKG_REQUIRED ]] && PKG_REQUIRED="slack-required" ! [[ $INSTALLPKG ]] && INSTALLPKG="internal" ! [[ $ADM_DIR_NAME ]] && ADM_DIR_NAME=/var/log # set the interactive mode preferences if [[ "$INTERACTIVE_MODE" = "ALL" ]] ; then QUERY_FOR_EXTRA_CONFIGS="YES" CONFIRM_BUILD="YES" QUERY_FOR_PKG_DESC="YES" fi # set the default installation method ! [[ $INSTALL_TYPE ]] && INSTALL_TYPE=JAIL # Add dependency information to the PKG_DESC (slack-desc) file by default ! [[ $ADD_DEPENDS_IN_DESC ]] && ADD_DEPENDS_IN_DESC="YES" # Generate a PKG_REQUIRED (slack-required) file by default ! [[ $ADD_REQUIRED_FILE ]] && ADD_REQUIRED_FILE="YES" ## Declare a bunch of system directories. These are barely used in ## the real packaging routines but several checks are done using these ## lists to make sure you haven't given any of these as working directories, etc. ! [[ $BIN_DIRS ]] && \ BIN_DIRS="bin sbin usr/bin usr/sbin usr/X11R6/bin \ usr/local/bin usr/local/sbin opt/kde/bin opt/*/bin" ! [[ $INC_DIRS ]] && \ INC_DIRS="usr/include usr/local/include usr/X11/include \ opt/kde/include opt/*/include usr/share/aclocal usr/local/share/aclocal" ! [[ $LIB_DIRS ]] && \ LIB_DIRS="usr/lib usr/local/lib usr/X11/lib \ opt/kde/lib opt/*/lib" ! [[ $LOCALE_DIRS ]] && \ LOCALE_DIRS="usr/share/locale usr/local/share/locale \ usr/lib/locale usr/X11R6/lib/X11/locale" ! [[ $MAN_DIRS ]] && \ MAN_DIRS="./usr/local/man/man* ./usr/local/man/*/man* ./usr/local/info \ ./usr/local/share/man/man* ./usr/local/share/man/*/man* \ ./usr/local/share/info \ ./usr/local/share/doc/*/man/man* ./usr/local/lib/*/man/man* \ ././usr/man/man* ./usr/man/*/man* ./usr/info \ ./usr/share/man/man* ./usr/share/man/*/man* ./usr/share/info \ ./usr/X11R6/man/man* ./usr/lib/perl5/man/man* \ ./usr/share/doc/*/man/man* ./usr/lib/*/man/man*"