mirror of the now-defunct rocklinux.org
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.

57 lines
2.0 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/x86/apmd/makefile-fixes.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. --- ./Makefile.orig 2005-12-20 12:13:15.000000000 +0100
  20. +++ ./Makefile 2005-12-20 12:13:49.000000000 +0100
  21. @@ -28,7 +28,10 @@
  22. .SUFFIXES:
  23. OBJS=apmlib.o
  24. -EXES=apm apmd xapm apmsleep
  25. +EXES=apm apmd apmsleep
  26. +ifndef SKIP_XAPM
  27. + EXES += xapm
  28. +endif
  29. HEADERS=apm.h
  30. PREFIX=/usr
  31. @@ -37,8 +40,7 @@
  32. CC=gcc
  33. CFLAGS=-O -g
  34. -XTRACFLAGS=-Wall -pipe -I. -I/usr/src/linux/include \
  35. - -I/usr/src/linux-2.2/include -I /usr/src/linux-2.0/include \
  36. +XTRACFLAGS=-Wall -pipe -I. -I/usr/include \
  37. -DVERSION=\"$(VERSION)\" \
  38. -DAPMD_PROXY_NAME=\"$(APMD_PROXY_DIR)/apmd_proxy\"
  39. LDFLAGS=
  40. @@ -92,10 +94,12 @@
  41. install on_ac_power ${PREFIX}/bin
  42. install -m 644 apm.1 ${MANDIR}/man1
  43. install apmd ${PREFIX}/sbin
  44. - install -b -Vt apmd_proxy ${APMD_PROXY_DIR}
  45. + install -b apmd_proxy ${APMD_PROXY_DIR}
  46. install -m 644 apmd.8 ${MANDIR}/man8
  47. +ifndef SKIP_XAPM
  48. install xapm ${PREFIX}/bin
  49. install -m 644 xapm.1 ${MANDIR}/man1/xapm.1
  50. +endif
  51. install apmsleep ${PREFIX}/bin
  52. install -m 644 apmsleep.1 ${MANDIR}/man1
  53. install -m 644 apmsleep.1.fr ${MANDIR}/fr/man1