# --- SDE-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../adgen/adgen.conf # Copyright (C) 2007 - 2008 The OpenSDE Project # # More information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 of the License. A copy of the # GNU General Public License can be found in the file COPYING. # --- SDE-COPYRIGHT-NOTE-END --- # Prevent executing normal make and install build steps. # This package has custom make and install. makeopt= makeinstopt= pkgprefix -t python adgen_postmake () { local BINDIR="$root$bindir" local LIBDIR="$root$libdir/adgen" # creating directory layout mkdir -pv $BINDIR $LIBDIR # Make sure the adgen script knows where the libraries will # be installed. (LIBDIR was patched into adgen.py) sed -i "s,\$LIBDIR,$LIBDIR," adgen.py # Make it executable chmod 755 adgen.py # Install the whole bunch cp -av adgen.py $BINDIR/adgen for dir in "config ftp util"; do cp -av $dir $LIBDIR/ done } hook_add postmake 5 adgen_postmake