FreshPorts -- The Place For Ports notbugIf you buy from Amazon USA, please support us by using this link.
Follow us

Website Feedback
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
Author: wxs 
Date:   27-12-07 17:38

We discussed this on IRC but you should be able to use 'make showconfig' to parse out the supported OPTIONS for a port and store those in the database to be displayed later.

-- WXS

Reply To This Message
Author: Dan 
Date:   27-12-07 18:14

Yes, for example:

[dvl@pcbsd:/usr/home/dvl] $ cd /usr/ports/sysutils/bacula-server
[dvl@pcbsd:/usr/ports/sysutils/bacula-server] $ make showconfig
===> The following configuration options are available for bacula-server-2.2.6:
SQLITE3=off (default) "Use SqLite-3 database instead of SqLite-2"
MYSQL=off (default) "Use MySQL database instead of SqLite"
POSTGRESQL=off (default) "Use PostgreSQL database instead of SqLite"
MTX=off (default) "Install mtx for control of autochanger devices"
NLS=on (default) "Native Language Support via gettext utilities"
OPENSSL=off (default) "Enable OpenSSL for encrypted communication"
===> Use 'make config' to modify these settings
[dvl@pcbsd:/usr/ports/sysutils/bacula-server] $

Looks easy to me. Where on the webpage do you think that should be displayed?

The Man Behind The Curtain

Reply To This Message
Author: reezer 
Date:   10-04-16 09:35

I am sorry to dig this out again, but it appears that it is displayed and could be made queryable. It would be great if one was able to search for ports providing a specific option.

Reply To This Message
Author: Dan 
Date:   11-04-16 00:59

Seems like this could be fast: explain analyse select count(*) from ports where showconfig ilike '%MTX%';
Aggregate (cost=10714.86..10714.88 rows=1 width=0) (actual time=150.633..150.636 rows=1 loops=1)
-> Seq Scan on ports (cost=0.00..10714.86 rows=1 width=0) (actual time=3.186..150.526 rows=19 loops=1)
Filter: (showconfig ~~* '%MTX%'::text)
Rows Removed by Filter: 38328
Planning time: 0.571 ms
Execution time: 150.708 ms
(6 rows)

The Man Behind The Curtain

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 

 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Remember my login:
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.

Servers and bandwidth provided by
New York Internet, SuperNews, and RootBSD
Valid HTML, CSS, and RSS.
Copyright © 2000-2018 Dan Langille. All rights reserved.