Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # $OpenBSD: Makefile,v 1.19 2017/05/31 20:33:44 millert Exp $
  2. COMMENT= execute a command as another user
  3. DISTNAME= sudo-1.8.20p2
  4. PKGNAME= sudo-1.8.20.2
  5. CATEGORIES= security
  6. MAINTAINER= Todd C. Miller <millert@openbsd.org>
  7. # ISC-style license
  8. PERMIT_PACKAGE_CDROM= Yes
  9. WANTLIB+= c util z
  10. HOMEPAGE= https://www.sudo.ws/
  11. MASTER_SITES= https://www.sudo.ws/dist/ \
  12. ftp://plier.ucar.edu/pub/sudo/ \
  13. ftp://ftp.tux.org/pub/security/sudo/ \
  14. ftp://sunsite.ualberta.ca/pub/Mirror/sudo/
  15. SEPARATE_BUILD= Yes
  16. CONFIGURE_STYLE= gnu
  17. CONFIGURE_ARGS+= --with-insults \
  18. --with-env-editor \
  19. --with-logfac=authpriv \
  20. --with-libtool=system \
  21. --disable-path-info \
  22. --enable-zlib=system
  23. SHARED_LIBS= sudo_util 0.0
  24. FLAVORS= gettext ldap
  25. FLAVOR?=
  26. .if ${FLAVOR:Mldap}
  27. CONFIGURE_ARGS+= --with-ldap=${LOCALBASE}
  28. LIB_DEPENDS+= databases/openldap
  29. WANTLIB+= crypto lber-2.4 ldap-2.4 sasl2 ssl
  30. .endif
  31. .if ${FLAVOR:Mgettext}
  32. MODULES+= devel/gettext
  33. CONFIGURE_ARGS += --enable-nls=${LOCALBASE}
  34. .else
  35. CONFIGURE_ARGS += --disable-nls
  36. .endif
  37. # Don't set owner on install in fake mode
  38. FAKE_FLAGS= "INSTALL_OWNER="
  39. EXAMPLEDIR= ${PREFIX}/share/examples/sudo
  40. post-install:
  41. ${INSTALL_DATA} ${FILESDIR}/sudoers ${EXAMPLEDIR}/sudoers.OpenBSD
  42. rm -rf ${WRKINST}/etc/sudoers* ${WRKINST}/var/db/sudo \
  43. ${WRKINST}/var/run/sudo ${EXAMPLEDIR}/pam.conf
  44. .include <bsd.port.mk>