# -*- ruby -*- # # pkgtools.conf - the configuration file for the pkgtools suite # # $Id: pkgtools.conf 1028 2004-07-20 11:14:02Z knu $ # Syntax: # string: '...' or "..."; use the `+' operator to concatenate # boolean: true or false # array: [ value, ... ]; use the `+' operator to concatenate # hash: { key => value, ... } # procedure: proc { |arglist| statements; return_value } # Useful predefined constants: # # Name: Example values: # OS_RELEASE: "5.0-CURRENT" "4.6.1-RELEASE-p8" # OS_REVISION: "5.0" "4.6.1" # OS_MAJOR: "5" "4" # OS_BRANCH: "CURRENT" "RELEASE" # OS_PATCHLEVEL: "" "-p8" # OS_PLATFORM: "i386" "alpha" # OS_PKGBRANCH: "5-current" "4.6.1-release" # Useful predefined functions: # # localbase() # Returns LOCALBASE. # # x11base() # Returns X11BASE. # # pkg_site_builder([latest]) # Returns a URI of the packages directory on the package builder site; # Equivalent to: # on i386: # sprintf('http://bento.FreeBSD.org/errorlogs/packages-%s-%s/', # OS_MAJOR, latest ? 'latest' : 'full') # on alpha: # sprintf('http://beta.FreeBSD.org/errorlogs/packages-%s-%s/', # OS_MAJOR, latest ? 'latest' : 'full') # # pkg_site_mirror([root]) # Returns a URI of the packages directory on the preferred mirror site; # Equivalent to: # sprintf('%s/pub/FreeBSD/ports/%s/packages-%s/', # root || ENV['PACKAGEROOT'] || 'ftp://ftp.FreeBSD.org', # OS_PLATFORM, OS_PKGBRANCH) # # pkg_site_primary() # Returns a URI of the packages directory on the primary FTP site; # Equivalent to: # pkg_site_mirror('ftp://ftp.FreeBSD.org') # # deorigin(origin) # Returns an installed package name which was installed from the # given origin port. # e.g. # deorigin('sysutils/portupgrade') => 'portupgrade-YYYYMMDD' # # enabled_rc_scripts(origin_or_pkgname) # Returns an array of "enabled" rc scripts ($PREFIX/etc/rc.d/*.sh) # for the given package. "Enabled" here means that files such as # *.sh.sample are ignored, however, if a package installs # foo.sh.sample and there is foo.sh, it is considered as an enabled # rc file for the package and thus returned. # # disabled_rc_scripts(origin_or_pkgname) # Returns an array of disabled rc scripts ($PREFIX/etc/rc.d/*.sh.*) # that the given package installed. If a package installs # foo.sh.sample and there is foo.sh, it is considered as enabled # and thus ignored. # # cmd_start_rc(origin_or_pkgname) # Returns a command line string that starts the services of the # given package, if any. (Yields "start" for each enabled rc # script) # # cmd_stop_rc(origin_or_pkgname) # Returns a command line string that stops the services of the # given package, if any. (Yields "stop" for each enabled rc script) # # cmd_restart_rc(origin_or_pkgname) # Returns a command line string that restarts the services of the # given package, if any. (Yields "stop", sleeps for 3 seconds, then # yields "start" for each enabled rc script) # # cmd_enable_rc(origin_or_pkgname) # Returns a command line string that enables the disabled rc # scripts of given package, if any. # # cmd_disable_rc(origin_or_pkgname) # Returns a command line string that disables the enabled rc # scripts of given package, if any. # module PkgConfig def pkg_site_mirror(root = ENV['PACKAGEROOT'] || 'ftp://ftp.cz.FreeBSD.org') sprintf('%s/pub/FreeBSD/ports/%s/packages-stable/', root, OS_PLATFORM) end def cmd_stop_rc(origin) enabled_rc_scripts(origin).map { |file| "#{file} stop; #{file} poll" }.join("; ") end def cmd_restart_rc(origin) enabled_rc_scripts(origin).map { |file| "#{file} stop ; #{file} poll || sleep 10 ; #{file} start ; sleep 1" }.join("; ") end module_function :deorigin, :enabled_rc_scripts, :disabled_rc_scripts, :cmd_start_rc, :cmd_stop_rc, :cmd_restart_rc, :cmd_disable_rc, :cmd_enable_rc, :include_eval, :include_hash # Environment Variables: string # # Uncomment and edit as necessary. The `||=' operator means `set only # if it is not set', i.e. it gives a variable its default value. # # It is particularly recommended that you set PORTS_INDEX to # something other than the default value to avoid conflicts with CVS, # CVSup, and CTM. # # cf. portupgrade(1), pkg_which(1) # # defaults: # ENV['PORTSDIR'] ||= '/usr/ports' # ENV['PORTS_INDEX'] ||= ENV['PORTSDIR'] + '/INDEX' # ENV['PORTS_DBDIR'] ||= ENV['PORTSDIR'] # ENV['PKG_DBDIR'] ||= '/var/db/pkg' # # ENV['PKG_TMPDIR'] ||= '/var/tmp' # # ENV['PACKAGES'] ||= ENV['PORTSDIR'] + '/packages' # # e.g.: # ENV['PORTSDIR'] ||= '/export/freebsd/ports' # ENV['PORTS_INDEX'] ||= ENV['PORTSDIR'] + '/INDEX.local' # ENV['PORTS_DBDIR'] ||= ENV['PKG_DBDIR'] # # ENV['PACKAGES'] ||= sprintf('/export/freebsd/packages-%s', # OS_PKGBRANCH) # ENV['PKG_PATH'] ||= ENV['PACKAGES'] + '/All' # # ENV['PKG_FETCH'] = "wget -O '%2$s' '%1$s'" # ENV['PKG_FETCH'] = "curl '%s' -o '%s'" # ENV['PKG_FETCH'] = 'false' # never fetch packages from a remote site # ENV['PACKAGEROOT'] = 'ftp://ftpN.XX.FreeBSD.org' ENV['PORTSDIR'] ||= '/usr/ports' ENV['PACKAGES'] ||= ENV['PORTSDIR'] + '/packages' ENV['PKG_PATH'] ||= ENV['PACKAGES'] + '/All' ENV['PACKAGEROOT'] = 'ftp://ftp.cz.FreeBSD.org' if !File.writable?(ENV['PORTSDIR']+"/Makefile") then # $stderr.puts ENV['PORTSDIR']+"/Makefile is READ ONLY" if ! File.directory?("/tmp/.portstmp") then dir = Dir.mkdir("/tmp/.portstmp") else dir = Dir.new("/tmp/.portstmp") end ENV['CD_MOUNTPTS'] = ENV['PORTSDIR']+"/distfiles ENV['DISTFILES'] = "#{dir}/distfiles" ENV['WRKDIRPREFIX'] = "#{dir}" else # $stderr.puts ENV['PORTSDIR']+"/Makefile is writeable" end # SANITY_CHECK: boolean (default: true) # # If true, perform sanity checks on stale dependencies. This makes # it up to 50% slower to parse package globs but offers unfailing # upgrades. If you are sure you won't forget to run `pkgdb -F' # regularly, turn this off to improve performance. (default: true) # # cf. -O/--omit-check of pkg_deinstall(1), pkg_glob(1), # portupgrade(1) and portversion(1) SANITY_CHECK = true # IGNORE_CATEGORIES: array # # This is a list of port categories you want the pkgtools to ignore. # Typically you want to list language specific categories of the # languages you don't use. # # After configuring this list, you need to rebuild the ports # database to reflect the changes. (run 'portsdb -Ufu') # # e.g.: # IGNORE_CATEGORIES = [ # 'chinese', # 'french', # 'german', # 'hebrew', # 'japanese', # 'korean', # 'russian', # 'ukrainian', # 'vietnamese', # ] IGNORE_CATEGORIES = [ ] # EXTRA_CATEGORIES: array # # This is a list of extra port categories you put your locally # maintained ports into. You must prepare a Makefile in each directory # that defines a variable SUBDIR which lists all the ports in the # category. # # After configuring this list, you need to rebuild the ports # database to reflect the change. (run 'portsdb -Ufu') # # e.g.: # EXTRA_CATEGORIES = [ # 'local', # ] EXTRA_CATEGORIES = [ ] # HOLD_PKGS: array # # This is a list of ports you don't want portupgrade(1) to upgrade, # portversion(1) to suggest upgrading, or pkgdb(1) to fix. # You can use wildcards ("ports glob" and "pkgname glob"). # -f/--force with each command will override the held status. # # To completely hide the existence of a package, put a dummy file # named "+IGNOREME" in the package directory. # # cf. pkg_glob(1), ports_glob(1) # # e.g.: # HOLD_PKGS = [ # 'bsdpan-*', # 'x11*/XFree86*', # ] HOLD_PKGS = [ 'bsdpan-*', 'adptfbsd-3*', 'net/cvsup-mirror', 'milter-sender-*', 'oww-*', ] # USE_PKGS: array # USE_PKGS_ONLY: array # # These are lists of ports that you prefer to use packages to # upgrade or install. They apply -P/--use-packages and # -PP/--use-packages-only to specific ports, respectively. # # cf. -P/--use-packages and -PP/--use-packages-only of # portupgrade(1) and portinstall(1) # # e.g.: # USE_PKGS = [ # 'perl', # 'ruby', # 'python', # ] # # USE_PKGS_ONLY = [ # 'x11*/XFree86*', # '*openoffice*', # ] USE_PKGS = [ ] USE_PKGS_ONLY = [ ] # ALT_PKGDEP: hash # # This is a hash to define alternative package dependencies. For # each pair A => B, when a package X claims that it depends on a # package that matches the "pkgname glob" pattern A which is not # installed, the dependency is replaced with one installed # package that matches the "pkgname glob" pattern B. If glob B # matches more than one installed package, replacement is not done # automatically. <:delete> and <:skip> are special symbols that can # be used as B values, instead of pkgname glob patterns. <:delete> # means to delete the dependency and <:skip> to skip it. # # cf. pkg_glob(1) # # e.g.: # ALT_PKGDEP = { # # If you use apache13-modssl instead of apache13 # 'apache-1.3.*' => 'apache+mod_ssl-1.3.*', # # # The same as above; you can use origins also # 'www/apache13' => 'www/apache13-modssl', # # # If you install Apache from source (not from ports/packages) # 'apache' => :delete, # # # You can specify pkgname w/o version; see pkg_glob(1) # 'w3m' => 'w3m-m17n', # } ALT_PKGDEP = { 'java/jdk15' => 'java/jdk16', 'lang/perl5.8' => 'lang/perl5.16', 'lang/perl5.10' => 'lang/perl5.16', 'lang/perl5.12' => 'lang/perl5.16', 'lang/perl5.14' => 'lang/perl5.16', 'lang/python24' => 'lang/python27', 'lang/python25' => 'lang/python27', 'lang/python26' => 'lang/python27', 'www/links1' => 'www/links', 'security/gnupg1' => 'security/gnupg', 'devel/libslang' => 'devel/libslang2', 'editors/pico' => 'editors/pico-alpine', 'mail/pine4' => 'mail/alpine', 'mail/mutt' => 'mail/mutt-lite', 'net/isc-dhcp30-server' => 'net/isc-dhcp42-server', 'net/isc-dhcp30-client' => 'net/isc-dhcp42-client', 'net/isc-dhcp41-server' => 'net/isc-dhcp42-server', 'net/isc-dhcp41-client' => 'net/isc-dhcp42-client', # 'net/isc-dhcp42-server' => 'net/isc-dhcp43-server', # 'net/isc-dhcp42-client' => 'net/isc-dhcp43-client', 'net/samba35' => 'net/samba36', 'editors/openoffice.org-2' => 'editors/libreoffice', 'editors/openoffice.org-3' => 'editors/libreoffice', 'editors/openoffice-3' => 'editors/libreoffice', 'databases/mysql4*-client' => 'databases/mysql56-client', 'databases/mysql4*-server' => 'databases/mysql56-server', 'databases/mysql50-client' => 'databases/mysql56-client', 'databases/mysql50-server' => 'databases/mysql56-server', 'databases/mysql51-client' => 'databases/mysql56-client', 'databases/mysql51-server' => 'databases/mysql56-server', 'databases/mysql55-client' => 'databases/mysql56-client', 'databases/mysql55-server' => 'databases/mysql56-server', 'devel/bugzilla' => 'devel/bugzilla44', } # MAKE_ARGS: hash # # This is a hash of ports glob or package glob => arguments mapping. # portupgrade(1) and portinstall(1) look it up to pick command line # arguments to pass to make(1). You can use wildcards ("ports glob" # or "package glob"). If a port/package matches multiple entries, # all the arguments are joined using the space as separator. # # cf. -m/--make-args of portupgrade(1), ports_glob(1) # # You can alternatively specify a procedure instead of a string if # you want to specify arguments which can vary depending on the port. # The procedure is called with a port origin as an argument. # # e.g.: # MAKE_ARGS = { # 'databases/mysql323-*' => 'WITH_CHARSET=ujis', # 'ruby18-*' => 'RUBY_VER=1.8', # 'ruby16-*' => 'RUBY_VER=1.6', # } # # To specify multiple arguments for each port, use one of the # following: # # MAKE_ARGS = { # # a) Separate them with the space # 'databases/mysql41-*' => 'WITH_LINUXTHREADS=1 SKIP_DNS_CHECK=1', # # # b) Specify them using an array # 'databases/mysql41-*' => [ # 'WITH_LINUXTHREADS=1', # 'SKIP_DNS_CHECK=1', # ], # } MAKE_ARGS = { '*' => [ 'WITH_OPENSSL_PORT=yes', '-DWITHOUT_OPENSSL_BASE', 'PACKAGE_BUILDING=1', '_LICENSE_STATUS=accepted', '-DNOPORTDOCS', '-DNOPORTEXAMPLES', 'OPTIONS_UNSET+=DOCS', 'OPTIONS_UNSET+=EXAMPLES', 'WANT_OPENLDAP_VER=24', 'WITH_BDB_VER=5', 'OPTIONSFILE=/dev/null', 'DEFAULT_VERSIONS="perl5=5.16 python=2.7 php=5.4 mysql=5.6 apache=2.2"', 'RUBY_DEFAULT=1.9', ], 'php5*' => [ 'OPTIONS_SET+=APACHE', 'OPTIONS_SET+=IPV6', 'OPTIONS_SET+=SUHOSIN', ], # 'lang/php5' => 'CONFIGURE_ENV=LIBS=-lthr', 'databases/php5-mysql*' => 'OPTIONS_UNSET+=MYSQLND', 'databases/php5-pdo_mysql*' => 'OPTIONS_UNSET+=MYSQLND', 'print/ghostscript-gnu' => 'A4=yes', 'ghostscript*' => [ 'OPTIONS_SET+=A4SIZE', 'OPTIONS_UNSET+=X11', 'OPTIONS_UNSET+=LIBPAPER', 'OPTIONS_UNSET+=FONTCONFIG', ], 'editors/vim' => '-DLITE', 'security/openssl' => [ 'OPTIONS_SET+=I386', 'OPTIONS_SET+=MD2', 'OPTIONS_SET+=RC5', 'OPTIONS_SET+=RFC3779', ], 'www/apache22' => [ 'OPTIONS_SET+=MEM_CACHE', 'OPTIONS_SET+=SSL', 'OPTIONS_SET+=SUEXEC', 'OPTIONS_SET+=PROXY', 'OPTIONS_SET+=PROXY_CONNECT', 'OPTIONS_SET+=PROXY_FTP', 'OPTIONS_SET+=PROXY_HTTP', 'OPTIONS_SET+=PROXY_AJP', 'OPTIONS_SET+=PROXY_BALANCER', 'OPTIONS_SET+=PROXY_SCGI', ], 'www/apache24' => [ 'OPTIONS_SET+=MEM_CACHE', 'OPTIONS_SET+=SSL', 'OPTIONS_SET+=SUEXEC', 'OPTIONS_SET+=PROXY', 'OPTIONS_SET+=PROXY_CONNECT', 'OPTIONS_SET+=PROXY_FTP', 'OPTIONS_SET+=PROXY_HTTP', 'OPTIONS_SET+=PROXY_AJP', 'OPTIONS_SET+=PROXY_BALANCER', 'OPTIONS_SET+=PROXY_SCGI', 'OPTIONS_SET+=CHARSET_LITE', ], 'devel/bugzilla' => [ 'OPTIONS_SET+=MYSQL', 'OPTIONS_UNSET+=GRAPH_REPORTS', 'OPTIONS_UNSET+=CHARTING_MODULES', 'OPTIONS_UNSET+=MORE_HTML', ], 'devel/apr1' => [ 'OPTIONS_UNSET+=BDB', 'OPTIONS_UNSET+=GDBM', 'OPTIONS_SET+=SSL', ], 'lang/expect' => [ 'OPTIONS_UNSET+=X11', ], 'net/freeradius2' => [ 'OPTIONS_SET+=MYSQL', 'OPTIONS_SET+=DEBUG', 'OPTIONS_UNSET+=PERL', 'OPTIONS_UNSET+=PYTHON', ], 'print/freetype2' => [ 'OPTIONS_SET+=LCD_FILTERING', ], 'devel/git' => [ 'OPTIONS_SET+=GITWEB', 'OPTIONS_SET+=PERL', 'OPTIONS_UNSET+=HTMLDOCS', 'OPTIONS_UNSET+=GUI', 'OPTIONS_UNSET+=CONTRIB', 'OPTIONS_UNSET+=CURL', 'OPTIONS_UNSET+=ICONV', 'OPTIONS_UNSET+=P4', 'OPTIONS_UNSET+=CVS', 'OPTIONS_UNSET+=SVN', 'OPTIONS_UNSET+=ETCSHELLS', ], 'lang/ocaml' => [ 'OPTIONS_UNSET+=X11', 'OPTIONS_UNSET+=TK', ], 'graphics/png' => [ 'OPTIONS_SET+=APNG', ], 'security/gnupg' => [ 'OPTIONS_UNSET+=GPGSM', ], 'net/samba3*' => [ 'OPTIONS_SET+=ACL_SUPPORT', 'OPTIONS_SET+=QUOTAS', 'OPTIONS_SET+=PAM_SMBPASS', 'OPTIONS_SET+=ADS', ], 'net/samba4*' => [ 'OPTIONS_SET+=ACL_SUPPORT', 'OPTIONS_SET+=QUOTAS', 'OPTIONS_SET+=PAM_SMBPASS', 'OPTIONS_SET+=ADS', 'OPTIONS_UNSET+=SWAT', ], 'net/vnc' => [ 'OPTIONS_SET+=SERVER', ], 'multimedia/ffmpeg' => [ 'OPTIONS_UNSET+=THEORA', 'OPTIONS_SET+=LAME', 'OPTIONS_UNSET+=ASS', ], 'multimedia/mplayer' => [ 'OPTIONS_UNSET+=ASS', ], 'misc/mc' => [ 'OPTIONS_UNSET+=ICONV', 'OPTIONS_UNSET+=NLS', 'OPTIONS_SET+=EDIT', 'OPTIONS_UNSET+=X11', 'OPTIONS_UNSET+=SMB', ], 'mail/mailman' => [ 'OPTIONS_SET+=SENDMAIL', ], 'mail/mutt*' => [ '-DMUTT_LITE', 'OPTIONS_UNSET+=GSSAPI', 'OPTIONS_UNSET+=SGML_DOCS', 'OPTIONS_UNSET+=NCURSES_PORT', 'OPTIONS_UNSET+=SLANG', ], 'sysutils/bacula-client' => [ 'OPTIONS_SET+=MYSQL', ], 'sysutils/bacula-server' => [ 'OPTIONS_SET+=MYSQL', ], 'graphics/peps' => [ '-DWITHOUT_X11', ], 'sysutils/policykit' => [ #Build of manpages create build dependency of DOCBOOK heap 'OPTIONS_UNSET+=MANPAGES', ], 'sysutils/polkit' => [ #Build of manpages create build dependency of DOCBOOK heap 'OPTIONS_UNSET+=MANPAGES', ], 'devel/eggdbus' => [ #Build of manpages create build dependency of DOCBOOK heap 'OPTIONS_UNSET+=MANPAGES', ], 'mail/procmail' => [ 'BATCH=yes', ], 'multimedia/vlc' => [ 'OPTIONS_UNSET+=X11', 'OPTIONS_UNSET+=SKINS', 'OPTIONS_UNSET+=XCB', 'OPTIONS_UNSET+=XVIDEO', 'OPTIONS_UNSET+=GLX', 'OPTIONS_UNSET+=QT4', 'OPTIONS_UNSET+=GNOMEVFS', 'OPTIONS_UNSET+=OGG', 'OPTIONS_UNSET+=SAMBA', 'OPTIONS_UNSET+=MATROSKA', 'OPTIONS_SET+=LIVEMEDIA', ], 'security/cyrus-sasl2' => [ 'OPTIONS_UNSET+=AUTHDAEMOND', 'OPTIONS_UNSET+=OTP', 'OPTIONS_UNSET+=NTLM', 'OPTIONS_UNSET+=CRAM', 'OPTIONS_UNSET+=SCRAM', 'OPTIONS_UNSET+=OBSOLETE_CRAM_ATTR', ], # 'mysql-server-5*' => [ # 'WITH_CHARSET=utf8', 'WITH_XCHARSET=\'latin2,latin1,ascii\'', # 'WITH_COLLATION=utf8_czech_ci', 'WITH_OPENSSL=yes', 'WITH_YASSL=yes', # 'BUILD_OPTIMIZED=yes', # ], # 'mysql-client-5*' => [ # 'WITH_CHARSET=latin2', 'WITH_XCHARSET=\'latin2,latin1,ascii\'', # 'WITH_COLLATION=latin2_general_ci', 'WITH_OPENSSL=yes', 'WITH_YASSL=yes', # 'BUILD_OPTIMIZED=yes', # ], 'databases/mysql-connector-odbc' => [ # 'WITH_IODBC=yes', ], 'databases/firebird20-client' => [ 'NO_IGNORE=yes', ], 'databases/postgresql84-server' => [ 'OPTIONS_UNSET+=LDAP', 'OPTIONS_UNSET+=MIT_KRB5', 'OPTIONS_UNSET+=HEIMDAL_KRB5', ], 'databases/sqlite3' => [ 'OPTIONS_SET+=SECURE_DELETE', 'OPTIONS_SET+=THREADSAFE', 'OPTIONS_SET+=FTS3', 'OPTIONS_SET+=UNLOCK_NOTIFY', ], 'mail/roundcube' => [ 'OPTIONS_SET+=MYSQL', 'OPTIONS_SET+=SSL', ], 'graphics/graphviz' => [ 'OPTIONS_UNSET+=TK', 'OPTIONS_UNSET+=XPM', 'OPTIONS_UNSET+=PANGOCAIRO', ], 'graphics/gnash' => [ 'OPTIONS_UNSET+=AGG', 'OPTIONS_UNSET+=OPENGL', 'OPTIONS_SET+=CAIRO', ], 'math/gnuplot' => [ 'OPTIONS_UNSET+=X11', 'OPTIONS_UNSET+=TETEX', 'OPTIONS_UNSET+=WX', 'OPTIONS_UNSET+=CAIRO', 'OPTIONS_UNSET+=PDF', 'OPTIONS_UNSET+=PLOT', ], 'sysutils/heartbeat' => [ 'BATCH=yes', ], 'dns/mydns' => [ 'OPTIONS_SET+=OPDNSSL', 'OPTIONS_UNSET+=PGSQL', ], 'net-mgmt/nagios-plugins' => [ 'OPTIONS_SET+=NETSNMP', 'OPTIONS_SET+=RADIUS', 'OPTIONS_SET+=MYSQL', ], 'net-mgmt/nagios' => [ 'OPTIONS_SET+=EVENT_BROKER', ], 'net-mgmt/nrpe' => [ 'OPTIONS_SET+=SSL', 'OPTIONS_SET+=ARGS', ], 'mail/alpine' => [ 'OPTIONS_SET+=CONS25', 'OPTIONS_SET+=QUOTA', ], 'mail/openwebmail' => [ 'OPTIONS_SET+=PAM', 'OPTIONS_SET+=POP3_OVER_SSL', 'OPTIONS_SET+=SPEEDYCGI', 'OPTIONS_SET+=ZLIB', ], 'databases/phpmyadmin' => [ 'OPTIONS_UNSET+=APC', 'OPTIONS_UNSET+=GD', 'OPTIONS_UNSET+=MYSQL', 'OPTIONS_UNSET+=PDF', 'OPTIONS_UNSET+=XML', ], 'databases/p5-DBD-Sybase' => [ 'BATCH=yes', ], 'net/p5-Net' => [ 'BATCH=yes', ], 'mail/p5-Mail-SpamAssassin' => [ 'OPTION_SET+=AS_ROOT', 'OPTION_SET+=SSL', ], 'net/asterisk*' => [ 'OPTIONS_SET+=CURL', 'OPTIONS_SET+=DAHDI', 'OPTIONS_UNSET+=EXCHANGE', 'OPTIONS_UNSET+=FREETDS', 'OPTIONS_SET+=GSM', 'OPTIONS_UNSET+=H323', 'OPTIONS_UNSET+=OOH323', 'OPTIONS_UNSET+=JABBER', 'OPTIONS_UNSET+=LDAP', 'OPTIONS_UNSET+=LUA', 'OPTIONS_SET+=MYSQL', 'OPTIONS_SET+=NEWG711', 'OPTIONS_UNSET+=ODBC', 'OPTIONS_UNSET+=OOH323', 'OPTIONS_UNSET+=PGSQL', 'OPTIONS_UNSET+=RADIUS', 'OPTIONS_UNSET+=SNMP', 'OPTIONS_SET+=SPANDSP', 'OPTIONS_UNSET+=SQLITE', 'OPTIONS_UNSET+=SRTP', 'OPTIONS_UNSET+=VORBIS', 'OPTIONS_UNSET+=IODBC', 'OPTIONS_UNSET+=UNIXODBC', 'OPTIONS_UNSET+=XMPP', ], 'lang/perl5.*' => [ 'OPTIONS_UNSET+=PERL_MALLOC', # 'ENABLE_SUIDPERL=yes', ], 'lang/ruby19' => [ 'OPTIONS_UNSET+=RDOC', ], 'lang/gcc' => [ 'OPTIONS_UNSET+=JAVA', ], 'lang/gcc46' => [ 'OPTIONS_UNSET+=JAVA', ], 'java/openjdk6' => [ 'OPTIONS_SET+=ICEDTEA', 'OPTIONS_SET+=POLICY', 'OPTIONS_SET+=IPV6', 'OPTIONS_UNSET+=SOUND', ], 'www/seamonkey*' => [ 'OPTIONS_UNSET+=CHATZILLA', 'OPTIONS_UNSET+=ENIGMAIL', 'OPTIONS_SET+=LDAP', 'OPTIONS_UNSET+=LIGHTNING', 'OPTIONS_UNSET+=WEBRTC', 'OPTIONS_UNSET+=OPTIMIZED_CFLAGS', ], 'devel/t1lib' => [ 'OPTIONS_UNSET+=X11', ], 'graphics/php5-gd' => [ 'OPTIONS_UNSET+=X11', ], 'editors/openoffice*' => [ 'OPTIONS_UNSET+=GNOMEVFS', 'LOCALIZED_LANG=all', ], 'editors/libreoffice' => [ 'OPTIONS_UNSET+=WEBDAV', 'OPTIONS_UNSET+=JAVA', 'OPTIONS_UNSET+=PGSQL', ], 'net/zebra' => [ 'OPTIONS_UNSET+=IPV6', 'OPTIONS_UNSET+=BGPD', 'OPTIONS_UNSET+=OSPF6D', 'OPTIONS_SET+=OSPFD', 'OPTIONS_UNSET+=RIPD', 'OPTIONS_UNSET+=RIPNGD', ], 'net/xorp' => [ 'OPTIONS_SET+=ADVMCAST', 'OPTIONS_SET+=IPV6', 'OPTIONS_SET+=OPTIMIZED_CLAGS', # 'OPTIONS_SET+=DEBUG', ], 'security/clamav' => [ 'OPTIONS_SET+=MILTER', 'OPTIONS_SET+=UNRAR', 'OPTIONS_SET+=STDERR', 'OPTIONS_UNSET+=DOCS', ], 'security/ipsec-tools' => [ 'OPTIONS_SET+=STATS', 'OPTIONS_SET+=RC5', 'OPTIONS_SET+=IDEA', 'OPTIONS_SET+=RADIUS', ], 'www/links' => [ 'OPTIONS_UNSET+=X11', ], 'print/teTeX-base' => [ 'OPTIONS_UNSET+=X11', ], 'ports-mgmt/portupgrade' => [ 'OPTIONS_SET+=DB_OVERRIDE', 'OPTIONS_SET+=BDB1', 'OPTIONS_UNSET+=BDB4', ], 'x11-drivers/xorg-drivers' => [ 'OPTIONS_SET+=MOUSE', 'OPTIONS_SET+=KEYBOARD', 'OPTIONS_SET+=VESA', 'OPTIONS_UNSET+=VGA', 'OPTIONS_UNSET+=ATI', 'OPTIONS_UNSET+=INTEL', 'OPTIONS_UNSET+=MACH64', 'OPTIONS_UNSET+=NV', 'OPTIONS_UNSET+=R128', 'OPTIONS_UNSET+=RADEONHD', 'OPTIONS_UNSET+=VIA', 'OPTIONS_UNSET+=ACECAD', 'OPTIONS_UNSET+=CALCOMP', 'OPTIONS_UNSET+=CITRON', 'OPTIONS_UNSET+=DIGITALEDGE', 'OPTIONS_UNSET+=DMC', 'OPTIONS_UNSET+=DYNAPRO', 'OPTIONS_UNSET+=ELO2300', 'OPTIONS_UNSET+=ELOGRAPHICS', 'OPTIONS_UNSET+=FPIT', 'OPTIONS_UNSET+=HYPERPEN', 'OPTIONS_UNSET+=JAMSTUDIO', 'OPTIONS_UNSET+=JOYSTICK', 'OPTIONS_UNSET+=MACH64', 'OPTIONS_UNSET+=MAGELLAN', 'OPTIONS_UNSET+=MAGICTOUCH', 'OPTIONS_UNSET+=MICROTOUCH', 'OPTIONS_UNSET+=MUTOUCH', 'OPTIONS_UNSET+=PALMAX', 'OPTIONS_UNSET+=PENMOUNT', 'OPTIONS_UNSET+=SPACEORB', 'OPTIONS_UNSET+=SUMMA', 'OPTIONS_UNSET+=TEK4957', 'OPTIONS_UNSET+=VMMOUSE', 'OPTIONS_UNSET+=VOID', 'OPTIONS_UNSET+=APM', 'OPTIONS_UNSET+=ARK', 'OPTIONS_UNSET+=CHIPS', 'OPTIONS_UNSET+=CIRRUS', 'OPTIONS_UNSET+=CYRIX', 'OPTIONS_UNSET+=DUMMY', 'OPTIONS_UNSET+=FBDEV', 'OPTIONS_UNSET+=GLINT', 'OPTIONS_UNSET+=I128', 'OPTIONS_UNSET+=I740', 'OPTIONS_UNSET+=I810', 'OPTIONS_UNSET+=IMSTT', 'OPTIONS_UNSET+=MGA', 'OPTIONS_UNSET+=NEOMAGIC', 'OPTIONS_UNSET+=NEWPORT', 'OPTIONS_UNSET+=NSC', 'OPTIONS_UNSET+=OPENCHROME', 'OPTIONS_UNSET+=RENDITION', 'OPTIONS_UNSET+=S3', 'OPTIONS_UNSET+=S3VIRGE', 'OPTIONS_UNSET+=SAVAGE', 'OPTIONS_UNSET+=SILICONMOTION', 'OPTIONS_UNSET+=SIS', 'OPTIONS_UNSET+=TDFX', 'OPTIONS_UNSET+=TGA', 'OPTIONS_UNSET+=TRIDENT', 'OPTIONS_UNSET+=TSENG', 'OPTIONS_UNSET+=VMWARE', 'OPTIONS_UNSET+=VOODOO', ], 'www/squid32' => [ 'SQUID_CONFIGURE_ARGS=--enable-x-accelerator-vary', 'OPTIONS_SET+=SQUID_SSL', 'OPTIONS_SET+=SQUID_REFERER_LOG', 'OPTIONS_SET+=SQUID_USERAGENT_LOG', 'OPTIONS_SET+=SQUID_LARGEFILE', 'OPTIONS_SET+=SQUID_STACKTRACES', 'OPTIONS_UNSET+=SQUID_KERB_AUTH', 'OPTIONS_UNSET+=SQUID_NIS_AUTH', 'OPTIONS_UNSET+=SQUID_SNMP', 'OPTIONS_UNSET+=SQUID_HTCP', 'OPTIONS_UNSET+=SQUID_WCCP', 'OPTIONS_SET+=SQUID_ICAP', 'OPTIONS_SET+=TP_IPFW', # 'LIB_DEPENDS=wwwcore.1:${PORTSDIR}/www/libwww', ], 'www/sarg' => [ 'OPTIONS_UNSET+=LDAP', ], 'www/squidguard' => [ 'OPTIONS_UNSET+=SQUID27', 'OPTIONS_SET+=SQUID32', ], 'www/webalizer' => [ 'OPTIONS_UNSET+=BDB', 'OPTIONS_SET+=BDB1', 'OPTIONS_SET+=LARGE_URL', ], 'net/istgt' => [ 'OPTIONS_UNSET+=VBOXVD', ], 'emulators/virtualbox-ose' => [ 'OPTIONS_UNSET+=QT4', 'OPTIONS_SET+=GUESTADDITIONS', 'OPTIONS_UNSET+=DBUS', 'OPTIONS_UNSET+=X11', 'OPTIONS_SET+=VNC', 'OPTIONS_UNSET+=NLS', 'OPTIONS_SET+=WEBSERVICE', 'OPTIONS_UNSET+=UDPTUNNEL', ], 'emulators/virtualbox-ose-kmod' => [ 'NO_IGNORE=yes', ], 'emulators/virtualbox-ose-additions' => [ 'OPTIONS_UNSET+=DEBUG', 'OPTIONS_UNSET+=X11', '-DDISABLE_CONFLICTS' ], 'mail/dovecot' => [ 'OPTIONS_UNSET+=MANAGESIEVE' ], 'mail/imap-uw' => [ 'OPTIONS_SET+=DRAC', ], 'devel/subversion' => [ 'OPTIONS_SET+=NEON', 'OPTIONS_UNSET+=BDB', 'OPTIONS_SET+=APACHE2_APR', 'OPTIONS_SET+=REPOSITORY_CREATION', 'OPTIONS_SET+=SVNSERVE_WRAPPER', ], 'www/moodle' => [ 'OPTIONS_SET+=MYSQL=yes', 'OPTIONS_UNSET+=MIMETEX', ], 'sysutils/fusefs-ntfs' => [ 'OPTIONS_UNSET+=UBLIO', ], 'textproc/docproj*' => [ 'OPTIONS_UNSET+=CJK', 'OPTIONS_UNSET+=JADETEX', ], 'ftp/wget' => [ 'OPTIONS_UNSET+=NLS', 'OPTIONS_UNSET+=IDN', ], } # BEFOREBUILD: hash # # This is a hash of ports glob => command mapping. portupgrade(1) # and portinstall(1) look it up to pick commands to run before # building a port. You can use wildcards ("ports glob"). If a # port/package matches multiple entries, all the commands are joined # using the semicolon as separator and run. # # cf. -B/--beforebuild of portupgrade(1), ports_glob(1) # # You can alternatively specify a procedure instead of a string if # you want to run a command which can vary depending on the port. # The procedure is called with a port origin as an argument. See # the examples in the AFTERINSTALL paragraph. # # e.g.: # BEFOREBUILD = { # # Always do cvs update before building a port # '*' => 'cvs update', # } BEFOREBUILD = { # '*' => 'make rmconfig', } # BEFOREDEINSTALL: hash # # This is a hash of ports glob => command mapping. pkg_deinstall(1) # looks it up to pick commands to run after installing a port. You # can use wildcards ("ports glob"). If a port/package matches # multiple entries, all the commands are joined using the semicolon # as separator and run. # # You can alternatively specify a procedure instead of a string if # you want to run a command which can vary depending on the port. # The procedure is called with a port origin as an argument. See # the following examples. # # e.g.: # BEFOREDEINSTALL = { # # Automatically stop the service for each package that has a # # rc script enabled # '*' => proc { |origin| # cmd_stop_rc(origin) # }, # # # Stop postfix # 'mail/postfix*' => localbase() + '/sbin/postfix stop', # } BEFOREDEINSTALL = { } # AFTERINSTALL: hash # # This is a hash of ports glob => command mapping. portupgrade(1) # and portinstall(1) look it up to pick commands to run after # installing a port. You can use wildcards ("ports glob"). If a # port/package matches multiple entries, all the commands are joined # using the semicolon as separator and run. # # cf. -B/--afterinstall of portupgrade(1), ports_glob(1) # # You can alternatively specify a procedure instead of a string if # you want to run a command which can vary depending on the port. # The procedure is called with an argument of a port origin. See # the following examples. # # e.g.: # AFTERINSTALL = { # # Re-enable the X wrapper # 'x11-servers/XFree86-4-Server' => sprintf('cd %s/bin && if [ -x Xwrapper-4 ]; then ln -sf Xwrapper-4 X; fi', x11base()), # # # Automatically start the server for each package that # # installs a rc file enabled # '*' => proc { |origin| # cmd_start_rc(origin) # }, # # # Automatically start MySQL server # 'databases/mysql323-server' => proc { |origin| # cmd_enable_rc(origin) + ';' + cmd_start_rc(origin) # }, # # # Start postfix # 'mail/postfix*' => localbase() + '/sbin/postfix start', # } AFTERINSTALL = { 'rsync' => 'ln -f ' + localbase() + '/bin/rsync' + ' ' + localbase() + '/bin/rsyncd', 'mail/alpine' => 'ln -s ' + localbase() + '/bin/alpine' + ' ' + localbase() + '/bin/pine', 'mail/p5-Mail-SpamAssassin' => localbase() + '/bin/sa-update -D', 'www/apache*' => 'for i in dav dav_fs authn_dbd dbd substitute; do ' + localbase() + '/sbin/apxs -e -A -n $i mod_$i.so ; done', 'databases/mysql*-server' => localbase() + '/bin/mysql_upgrade ; ' + localbase() + '/bin/mysql_tzinfo_to_sql /usr/share/zoneinfo | ' + localbase() + '/bin/mysql -u root mysql', '*' => proc { |origin| cmd_restart_rc(origin) }, } # PKG_SITES: array # # This is a list of URI's to get packages from. Each site directory # must contain directories named 'All' and 'Latest'. The value of # the environment variable `PKG_SITES' is automatically prepended to # the list. (default: [pkg_site_mirror()]) # # e.g.: # PKG_SITES = [ # sprintf('ftp://ftp.localdomain/pub/freebsd/packages-%s/', OS_MAJOR), # pkg_site_builder(true), # pkg_site_builder(), # pkg_site_mirror(), # pkg_site_primary(), # ] PKG_SITES = [ sprintf('/usr/ports/packages/'), pkg_site_mirror(), ] # PORTUPGRADE_ARGS: string # # This sets the default options passed to portupgrade(1). # # e.g.: # PORTUPGRADE_ARGS = ENV['PORTUPGRADE'] || \ # '-v -D -l /var/tmp/portupgrade.results ' + \ # '-L /var/tmp/portupgrade-%s::%s.log' PORTUPGRADE_ARGS = ENV['PORTUPGRADE'] end