# /usr/libexec/src2pkg/DEFINES # src2pkg version 1.0 # 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 files defiles 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 lets you # override the defaults for any build. # 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. #####------------------ User Configured --------------------------##### #####------------------ src2pkg Defaults --------------------------##### ! [[ $QUIET = "NO" ]] && QUIET="YES" ! [[ $COLOR_PROMPT = "NO" ]] && COLOR_PROMPT="YES" # CREATOR is the default signature in slack-desc(PKG_DESC): Packaged by $CREATOR ! [[ $CREATOR ]] && CREATOR="src2pkg" # SIG is a suffix to BUILD for signing packages ! [[ $SIG ]] && SIG="" # 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="" # 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 but we use the safer -g or --strip-debug ! [[ $LIB_STRIP_COMMAND ]] && LIB_STRIP_COMMAND="-p --strip-debug" # 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 # the directory where the source tarball is located -can also be a link ! [[ $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" # installwatch 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 ]] && PKG_DESC="slack-desc" ! [[ $INSTALLPKG ]] && INSTALLPKG=installpkg ## 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*"