Mark packages that have <noembedded> tag to conflict with pfSense-base-nanobsd

This commit is contained in:
Renato Botelho 2015-09-18 14:14:02 -03:00
parent 1f5207bcd7
commit 7ca9339938

View File

@ -386,6 +386,9 @@ function create_port($pkg) {
$makefile[] = $port_use;
}
}
if (isset($pkg['noembedded'])) {
$pkg['conflicts'] = $product_name . '-base-nanobsd-[0-9]*' . (isset($pkg['conflicts']) ? ' ' . $pkg['conflicts'] : '');
}
if (isset($pkg['conflicts']) && !empty($pkg['conflicts'])) {
$makefile[] = "";
$makefile[] = "CONFLICTS=\t" . $port_name_prefix . $pkg['conflicts'] . '-[0-9]*';