port liste erstellen?

minimike

Berufsrevolutionär
Hi

Ich arbeite mich gerade in poudriere ein. Ich habe auf speziellen Servern eine recht umfangreiche Perl und PHP Installation um Icinga-Checks auszuführen. Ich versuche aus diesen Installationen eine Liste Betreff Perl und PHP zu exportieren.

Erster Versuch:

Code:
root@adm5:~ # portmaster -r perl --list-origins | sort -d | grep p5- > liste
root@adm5:~ # cat liste
databases/p5-DBD-SQLite
databases/p5-DBD-mysql
databases/php5-pdo_pgsql
databases/php5-pdo_sqlite
databases/php5-pgsql
databases/php5-sqlite3
devel/p5-Date-Calc
devel/p5-DateTime-Format-Strptime
devel/p5-ExtUtils-MakeMaker
devel/p5-Module-Build
devel/php5-gettext
devel/php5-json
ftp/php5-curl
graphics/php5-gd
lang/p5-Switch
net-mgmt/p5-Nagios-Plugin
net/php5-ldap
net/php5-soap
net/php5-sockets
net/php5-xmlrpc
security/php5-hash
security/php5-mcrypt
security/php5-openssl
textproc/p5-XML-LibXML
textproc/p5-XML-Simple
textproc/p5-YAML-Syck
textproc/php5-ctype
textproc/php5-xsl
www/p5-LWP-UserAgent-POE

Ist ein bisschen wenig

Code:
root@adm5:~ # pkg info | grep p5
p5-Authen-NTLM-1.09_1  Perl5 NTLM authentication module
p5-Authen-SASL-2.16_1  Perl5 module for SASL authentication
p5-Bit-Vector-7.3_1  Library of advanced math functions that includes a Perl OO module
p5-Carp-Clan-6.04_1  Report errors from perspective of caller of a "clan" of modules
p5-Class-Accessor-0.34_1  Automated accessor generation
p5-Class-Load-0.21_1  Working (require Class::Name) and more
p5-Class-Singleton-1.5_1  Perl module that describes a singular object class
p5-Config-Tiny-2.20_1  Read/Write .ini style files with as little code as possible
p5-Crypt-CBC-2.33_1  Perl5 interface to Cipher Block Chaining with DES and IDEA
p5-Crypt-DES-2.07_1  Perl5 interface to DES block cipher
p5-Curses-1.32_1  Perl5 module for terminal screen handling and optimization
p5-DBD-SQLite-1.42_1  Provides access to SQLite3 databases through the DBI
p5-DBD-mysql-4.029  MySQL driver for the Perl5 Database Interface (DBI)
p5-DBI-1.632  Perl5 Database Interface, required for DBD::* modules
p5-Data-OptList-0.109_1  Parse and validate simple name/value option pairs
p5-Date-Calc-6.3_1  Gregorian calendar date calculations
p5-DateTime-1.12_1  Date and time object
p5-DateTime-Format-Strptime-1.55_1,1 Parse and format strp and strf time patterns
p5-DateTime-Locale-0.45_1  Localization support for DateTime
p5-DateTime-TimeZone-1.81_1  Time zone object base class and factory
p5-Digest-HMAC-1.03_1  Perl5 interface to HMAC Message-Digest Algorithms
p5-Digest-SHA1-2.13_1  Perl interface to the SHA-1 Algorithm
p5-Dist-CheckConflicts-0.11_1  Declare version conflicts for your dist
p5-Encode-Locale-1.03_1  Determine the locale encoding
p5-Error-0.17022_1  Error/exception handling in object-oriented programming style
p5-Exporter-5.68_1  Implements default import method for modules
p5-ExtUtils-MakeMaker-6.98_1  Designed to write a Makefile for an extension module
p5-File-Listing-6.04_1  Parse directory listings
p5-Filter-1.50_1  Number of source filters for perl5 programs
p5-GSSAPI-0.28_1  Perl extension providing access to the GSSAPIv2 library
p5-HTML-Parser-3.71_1  Perl5 module for parsing HTML documents
p5-HTML-Tagset-3.20_1  Some useful data table in parsing HTML
p5-HTTP-Cookies-6.01_1  HTTP Cookie jars
p5-HTTP-Daemon-6.01_1  Simple HTTP server class
p5-HTTP-Date-6.02_1  Conversion routines for the HTTP protocol date formats
p5-HTTP-Message-6.06_3  Representation of HTTP style messages
p5-HTTP-Negotiate-6.01_1  Implementation of the HTTP content negotiation algorithm
p5-IO-HTML-1.001_1  Open an HTML file with automatic charset detection
p5-IO-Pipely-0.005_2  Portably create pipe() or pipe-like handles, one way or another
p5-IO-Socket-IP-0.34  Drop-in replacement for IO::Socket::INET supporting IPv4 and IPv6
p5-IO-Socket-SSL-2.007  Perl5 interface to SSL sockets
p5-IO-Tty-1.12_1  Flexible I/O Perl5 module that allows manipulation of pseudo-TTYs
p5-LWP-MediaTypes-6.02_1  Guess media type for a file or a URL
p5-LWP-UserAgent-POE-0.03_1  Drop-in LWP::UserAgent replacement in POE environments
p5-List-AllUtils-0.09_1  Combines List::Util and List::MoreUtils in one bite-sized package
p5-List-MoreUtils-0.33_1  Provide the stuff missing in List::Util
p5-Locale-gettext-1.05_4  Message handling functions
p5-Log-Log4perl-1.44_1  Log4j implementation for Perl
p5-MIME-Base64-3.14_1  Perl5 module for Base64 and Quoted-Printable encodings
p5-Math-Calc-Units-1.07_1  Human-readable unit-aware calculator
p5-Module-Build-0.4206_1  Build and install Perl modules
p5-Module-Implementation-0.09_1 Loads one of several alternate underlying implementations for a module
p5-Module-Runtime-0.014_1  Perl module for runtime module handling
p5-Mozilla-CA-20130114_1  Perl extension for Mozilla CA cert bundle in PEM format
p5-Nagios-Plugin-0.36_1  Modules to streamline writing Nagios plugins
p5-Net-HTTP-6.07_1  Low-level HTTP client
p5-Net-IP-Minimal-0.06_1  Minimal functions from Net::IP
p5-Net-SMTP-SSL-1.01_3  SSL support for Net::SMTP
p5-Net-SNMP-6.0.1_1  Object oriented interface to SNMP
p5-Net-SSLeay-1.66_1  Perl5 interface to SSL
p5-POE-1.358_1  Multitasking and networking framework for perl
p5-POE-Component-Client-HTTP-0.9480_1 POE component for non-blocking/concurrent HTTP queries
p5-POE-Component-Client-Keepalive-0.2710_1 POE component for managing connections, with keep-alive
p5-POE-Component-Resolver-0.921_1 Non-blocking getaddrinfo() resolver
p5-POE-Test-Loops-1.359_1  Reusable tests for POE Loop authors
p5-Package-Stash-0.37_1  Routines for manipulating stashes
p5-Package-Stash-XS-0.28_1  Faster and more correct implementation of the Package::Stash API
p5-Params-Util-1.07_1  Utility functions to aid in parameter checking
p5-Params-Validate-1.13_1  Validate method/function parameters
p5-Redis-1.9650_1  Perl binding for Redis database
p5-Scalar-List-Utils-1.35_1,1  Perl subroutines that would be nice to have in the perl core
p5-Socket-2.016_1  Networking constants and support functions
p5-Socket-GetAddrInfo-0.22_3  RFC 2553's getaddrinfo and getnameinfo functions
p5-Sub-Install-0.928_1  Install subroutines into packages easily
p5-Switch-2.17_1  Switch - A switch statement for Perl
p5-Term-ReadKey-2.32_1  Perl5 module for simple terminal control
p5-Test-Simple-1.001.003_1  Basic utilities for writing tests in perl
p5-Try-Tiny-0.18_1  Minimal try/catch with proper localization of $@
p5-URI-1.65  Perl5 interface to Uniform Resource Identifier (URI) references
p5-WWW-RobotRules-6.02_1  Database of robots.txt-derived permissions
p5-XML-LibXML-2.0116_1,1  Interface to Gnome libxml2 library
p5-XML-NamespaceSupport-1.11_1 Simple generic namespace support class
p5-XML-Parser-2.41_2  Perl extension interface to James Clark's XML parser, expat
p5-XML-SAX-0.99_2  Simple API for XML
p5-XML-SAX-Base-1.08_1  Base class SAX Drivers and Filters
p5-XML-SAX-Expat-0.51_1  Simple API for XML
p5-XML-Simple-2.20_1  Trivial API for reading and writing XML (esp config files)
p5-YAML-Syck-1.27_1  Fast, lightweight YAML and JSON loader and dumper
p5-libwww-6.08_1  Perl5 library for WWW access
php5-5.4.35  PHP Scripting Language
php5-ctype-5.4.35  The ctype shared extension for php
php5-curl-5.4.35  The curl shared extension for php
php5-dom-5.4.35  The dom shared extension for php
php5-gd-5.4.35  The gd shared extension for php
php5-gettext-5.4.35  The gettext shared extension for php
php5-hash-5.4.35  The hash shared extension for php
php5-json-5.4.35  The json shared extension for php
php5-ldap-5.4.35  The ldap shared extension for php
php5-mcrypt-5.4.35_1  The mcrypt shared extension for php
php5-openssl-5.4.35  The openssl shared extension for php
php5-pdo-5.4.35  The pdo shared extension for php
php5-pdo_pgsql-5.4.35  The pdo_pgsql shared extension for php
php5-pdo_sqlite-5.4.35_1  The pdo_sqlite shared extension for php
php5-pgsql-5.4.35  The pgsql shared extension for php
php5-session-5.4.35  The session shared extension for php
php5-soap-5.4.35  The soap shared extension for php
php5-sockets-5.4.35  The sockets shared extension for php
php5-sqlite3-5.4.35_1  The sqlite3 shared extension for php
php5-xml-5.4.35  The xml shared extension for php
php5-xmlrpc-5.4.35  The xmlrpc shared extension for php
php5-xsl-5.4.35  The xsl shared extension for php
php5-zlib-5.4.35  The zlib shared extension for php

Wie bekomme ich das am besten als Liste für portmaster und oder poudriere exportiert?
 
Das hier sollte, so glaube ich gehen. Damit zeigst du alles was mit "php5-x*" oder "php5-p*" lautet an:
Code:
pkg info -x '^php5-x|^php5-p'
In deinem Fall wäre wohl das hier richtig, wenn ich es verstanden habe:
Code:
pkg info -x '^php5-|^p5-'
Gruss
 
Versuch das mal

Code:
pkg info -o --all | tr -s " "| cut -d" " -f 2

da musste ich eben doch über mich selbst lachen und will euch daran Anteil haben lassen. Das war mein Versuch:

pkg info | grep p5 | sed "s/[ ].*//" | xargs -o pkg info -o | sed "s/^.*[ ]//"

etwas von hinten durch die Brust ins Auge, nicht wahr?
Das kommt natürlich von einer gewissen Betriebsblindheit gepaart mit störrischem Gebrauch einiger Lieblingskommandos bei mangelhafter Übung.
 
Zurück
Oben