userland-incorporator revision 883
0N/A# The contents of this file are subject to the terms of the 0N/A# Common Development and Distribution License (the "License"). 0N/A# You may not use this file except in compliance with the License. 0N/A# See the License for the specific language governing permissions # and limitations under the License. # When distributing Covered Code, include this CDDL HEADER in each # If applicable, add the following below this CDDL HEADER, with the # fields enclosed by brackets "[]" replaced with your own identifying # information: Portions Copyright [yyyy] [name of copyright owner] # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. # incorporator - an utility to incorporate packages in a repo #printf "/usr/bin/pkg list -ng $repository @fmris\n"; # lines should be in the form: # publisher package [r|o] version,branch:timestamp if (/^(\S+)\s+(\S+)\s+\S?\s+([\d.]+),([\d.\-]+):.+$/) { #printf "returning %s\n", $_->{name} for (@packages); printf "depend fmri=%s@%s-%s %s=true type=incorporate\n", "p|package=s" => \$fmri, "f|fmri=s" => \@fmris, # print the incorporation printf "depend fmri=pkg:/%s@%s-%s %s=true type=incorporate\n",