OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.2 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../adgen/adgen.conf
  5. # Copyright (C) 2007 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This program is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation; version 2 of the License. A copy of the
  12. # GNU General Public License can be found in the file COPYING.
  13. # --- SDE-COPYRIGHT-NOTE-END ---
  14. # Prevent executing normal make and install build steps.
  15. # This package has custom make and install.
  16. makeopt=''
  17. makeinstopt=''
  18. pkgprefix -t python
  19. adgen_postmake () {
  20. local BINDIR="$root$bindir"
  21. local LIBDIR="$root$libdir/adgen"
  22. # creating directory layout
  23. mkdir -pv $BINDIR $LIBDIR
  24. # Make sure the adgen script knows where the libraries will
  25. # be installed. (LIBDIR was patched into adgen.py)
  26. sed -i "s,\$LIBDIR,$LIBDIR," adgen.py
  27. # Make it executable
  28. chmod 755 adgen.py
  29. # Install the whole bunch
  30. cp -av adgen.py $BINDIR/adgen
  31. for dir in "config ftp util"; do
  32. cp -av $dir $LIBDIR/
  33. done
  34. }
  35. hook_add postmake 5 adgen_postmake