diff options
author | zeising <zeising@058c260c-8361-11dd-a0ac-aa2bafec7d09> | 2012-06-06 23:51:04 +0800 |
---|---|---|
committer | zeising <zeising@058c260c-8361-11dd-a0ac-aa2bafec7d09> | 2012-06-06 23:51:04 +0800 |
commit | 580ea2de5c37e67c5339b449ecc262c0213326e7 (patch) | |
tree | cb6252772d909de3750bc8db2a69c60c91dee60a /x11-servers/xorg-server/Makefile | |
parent | e7b0014c8bbeb001f817ed6fda1ffdbabe7b9b34 (diff) | |
download | xorg-devel-ports-580ea2de5c37e67c5339b449ecc262c0213326e7.tar xorg-devel-ports-580ea2de5c37e67c5339b449ecc262c0213326e7.tar.gz xorg-devel-ports-580ea2de5c37e67c5339b449ecc262c0213326e7.tar.bz2 xorg-devel-ports-580ea2de5c37e67c5339b449ecc262c0213326e7.tar.lz xorg-devel-ports-580ea2de5c37e67c5339b449ecc262c0213326e7.tar.xz xorg-devel-ports-580ea2de5c37e67c5339b449ecc262c0213326e7.tar.zst xorg-devel-ports-580ea2de5c37e67c5339b449ecc262c0213326e7.zip |
Backport changes from the regular ports tree.
Convert to the new options framework.
git-svn-id: https://trillian.chruetertee.ch/svn/ports/trunk@507 058c260c-8361-11dd-a0ac-aa2bafec7d09
Diffstat (limited to 'x11-servers/xorg-server/Makefile')
-rw-r--r-- | x11-servers/xorg-server/Makefile | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/x11-servers/xorg-server/Makefile b/x11-servers/xorg-server/Makefile index c9af1ba..7029476 100644 --- a/x11-servers/xorg-server/Makefile +++ b/x11-servers/xorg-server/Makefile @@ -76,15 +76,16 @@ MAN5+= xorg.conf.d.5 PLIST= ${.CURDIR}/pkg-plist .endif -OPTIONS= AIGLX "Compile with Accelerated Indirect GLX support" on \ - SUID "Install the Xorg server with setuid bit set" on +OPTIONS_DEFINE= AIGLX SUID HAL +AIGLX_DESC= Compile with Accelerated Indirect GLX support +SUID_DESC= Install the Xorg server with setuid bit set +HAL_DESC= Compile with HAL config support +OPTIONS_DEFAULT= AIGLX SUID HAL .include <bsd.port.pre.mk> .if ${ARCH} == sparc64 -OPTIONS+= HAL "Compile with HAL config support" off -.else -OPTIONS+= HAL "Compile with HAL config support" on +OPTIONS_DEFAULT:= ${OPTIONS_DEFAULT:NHAL} .endif @@ -95,20 +96,20 @@ OPTIONS+= HAL "Compile with HAL config support" on CONFIGURE_ENV+= SHA1_LIB="-L/usr/lib -lcrypto" SHA1_CFLAGS="-I/usr/include" .endif -.if !defined(WITHOUT_HAL) +.if ${PORT_OPTIONS:MHAL} LIB_DEPENDS+= hal.1:${PORTSDIR}/sysutils/hal CONFIGURE_ARGS+= --enable-config-hal=yes .else CONFIGURE_ARGS+= --enable-config-hal=no .endif -.if !defined(WITHOUT_AIGLX) +.if ${PORT_OPTIONS:MAIGLX} CONFIGURE_ARGS+= --enable-aiglx=yes .else CONFIGURE_ARGS+= --enable-aiglx=no .endif -.if !defined(WITHOUT_SUID) && (!defined(NO_SUID_XSERVER) || ${NO_SUID_XSERVER} == NO) +.if ${PORT_OPTIONS:MSUID} CONFIGURE_ARGS+=--enable-install-setuid=yes .else CONFIGURE_ARGS+=--enable-install-setuid=no @@ -142,14 +143,14 @@ PLIST_SUB+= AMD64_I386_SPARC64="" PLIST_SUB+= AMD64_I386_SPARC64="@comment " .endif -.if !defined(WITHOUT_SUID) && (!defined(NO_SUID_XSERVER) || ${NO_SUID_XSERVER} == NO) +.if ${PORT_OPTIONS:MSUID} pre-everything:: @${ECHO_MSG} "By default, the X Server installs as a set-user-id root binary. When run by" @${ECHO_MSG} "a normal user, it checks arguments and environment as done in the x11/wrapper" @${ECHO_MSG} "port before handling them normally. If you are concerned about the security" @${ECHO_MSG} "of this, but still want to run an X Server (for example using xdm/kdm/gdm," @${ECHO_MSG} "which will still run the server as root), you can cancel the build and set" - @${ECHO_MSG} "NO_SUID_XSERVER=YES in /etc/make.conf." + @${ECHO_MSG} "xorg-server_UNSET=SUID in /etc/make.conf." .endif .if defined(WITH_NEW_XORG) |