#!/bin/bash ## src2pkg script for: man ## Auto-generated by src2pkg-2.0 ## src2pkg - Copyright 2005-2009 Gilbert Ashley SOURCE_NAME='man-1.6f.tar.bz2' NAME='man' # Use ALT_NAME to override guessed value VERSION='1.6f' # Use ALT_VERSION to override guessed value # ARCH='' # BUILD='1' # PRE_FIX='usr' # Any extra options go here: # EXTRA_CONFIGS="" PATCHLIST='man-patches/man-1.5h1-gencat.patch man-patches/man-1.5h1-make.patch man-patches/man-1.5i2-newline.patch man-patches/man-1.5i2-overflow.patch man-patches/man-1.5j-i18n.patch man-patches/man-1.5j-nocache.patch man-patches/man-1.5k-nonascii.patch man-patches/man-1.5k-sofix.patch man-patches/man-1.5m2-bug11621.patch man-patches/man-1.5m2-buildroot.patch man-patches/man-1.5m2-multiple.patch man-patches/man-1.5m2-no-color-for-printing.patch man-patches/man-1.5m2-sigpipe.patch man-patches/man-1.6e-security.patch man-patches/man-1.6e-use_i18n_vars_in_a_std_way.patch man-patches/man-1.6f-use-xz.diff' DOCLIST='COPYING HISTORY README LSM' MAKE_COMMAND='make -i' ADD_REQS=groff SUGGESTS=man-pages # you'll have to be root to install these correctly # un comment if you want to install man2html cig-scripts INSTALL_CGI=YES # and set these variables for installation location to taste if [[ $INSTALL_CGI = "YES" ]] ; then if [[ $EUID != 0 ]] ; then echo "You have to be root to install cgi-scripts!" ; exit fi httpdir=var/www vardir=var/lib cgiowner=nobody cgigroup=nobody fi # Optional function replaces configure_source, compile_source, fake_install # To use, uncomment and write/paste CODE between the {} brackets. # build() { CODE } # Get the functions and configs . /usr/libexec/src2pkg/FUNCTIONS ; # Execute the named packaging steps: pre_process find_source make_dirs unpack_source fix_source_perms # configure_source # cd $SRC_DIR CFLAGS="$CFLAGS" \ ./configure +lang all +traditional -confdir /etc compile_source # If used, the 'build' function replaces these 3 # fake_install # make -i install PREFIX=${PKG_DIR} # don't override installed conf file mv $PKG_DIR/etc/man.conf $PKG_DIR/etc/man.conf.new # install utilities to view man-pages with a browser if [[ $INSTALL_CGI = "YES" ]] ; then ( cd $SRC_DIR/man2html mkdir -p ${PKG_DIR}/$httpdir/{cgi-bin,cgi-aux}/man install -m 644 scripts/cgi-aux/man/* ${PKG_DIR}/$httpdir/cgi-aux/man install -m 755 scripts/cgi-bin/man/* ${PKG_DIR}/$httpdir/cgi-bin/man ( cd ${PKG_DIR}/$httpdir/cgi-bin/man ; sed -i 's%var\/man2html%$vardir/man2html%' * ) mkdir -p ${PKG_DIR}/$vardir install -d -o $cgiowner -g $cgigroup -m 775 ${PKG_DIR}/$vardir/man2html # man doesn't respect the --mandir option :-) install -m 644 hman.1 $PKG_DIR/usr/man/man1 ) fi fix_pkg_perms strip_bins create_docs compress_man_pages make_description make_doinst make_package post_process ## See the documentation for more help and examples. Below are some of # the most common Extras and Options for easy cut-and-paste use. # DOCLIST='' PATCHLIST='' INSTALL_TYPE='' # CONFIG_COMMAND='' MAKE_COMMAND='' INSTALL_LINE='' # When editing src2pkg scripts to add custom code, use these variables # to refer to the current directory, the sources or the package tree: # $CWD (current directory), $SRC_DIR (sources), $PKG_DIR (package tree) # Other commonly-used directories include: $DOC_DIR (document directory) # $MAN_DIR (man-page directory) $DATA_DIR (shared-data directory)