Skip to content

Commit

Permalink
Merge pull request #190 from dbaio/openbgpd
Browse files Browse the repository at this point in the history
  • Loading branch information
rbgarga committed Sep 19, 2016
2 parents b692156 + 52f48c6 commit d5da031
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion net/pfSense-pkg-OpenBGPD/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

PORTNAME= pfSense-pkg-OpenBGPD
PORTVERSION= 0.11
PORTREVISION= 6
PORTREVISION= 7
CATEGORIES= net
MASTER_SITES= # empty
DISTFILES= # empty
Expand Down
4 changes: 4 additions & 0 deletions net/pfSense-pkg-OpenBGPD/files/usr/local/pkg/openbgpd.inc
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ function openbgpd_install_conf() {
} elseif (isset($config['installedpackages']['openbgpd']['rawconfig']) && !empty($config['installedpackages']['openbgpd']['rawconfig'])) {
// If there is a raw config specified in the config.xml, use that instead of the assisted config
$conffile = base64_decode($config['installedpackages']['openbgpd']['rawconfig']);
$conffile = preg_replace("~\r\n~", "\n", $conffile);
if ( substr($conffile,-1) != PHP_EOL ) {
$conffile .= "\n";
}
} else {
// Generate bgpd.conf based on the assistant
if ($config['installedpackages']['openbgpd']['config']) {
Expand Down

0 comments on commit d5da031

Please sign in to comment.