42 710 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
#
# Add mod_wsgi3 and py-flask ports.
#
use strict;
use libinstall;
use emdbi;

sub InstallUpdate($$)
{
    my ($version, $phase) = @_;

12 13 14 15
    if (! ($PGENISUPPORT && $PROTOGENI_GENIRACK)) {
	return 0
    }

16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
    if ($phase eq "pre") {
	Phase "mod_wsgi3", "Checking for port mod_wsgi3", sub {
	    DoneIfPackageInstalled("mod_wsgi3");
	    ExecQuietFatal("cd $PORTSDIR/www/mod_wsgi3; ".
			   "make MASTER_SITE_FREEBSD=1 -DBATCH install");
	};
	Phase "py-flask", "Checking for port py-flask", sub {
	    DoneIfPackageInstalled("py-flask");
	    ExecQuietFatal("cd $PORTSDIR/www/py-flask; ".
			   "make MASTER_SITE_FREEBSD=1 -DBATCH install");
	};
    }
    return 0;
}

1;
32 33 34 35

# Local Variables:
# mode:perl
# End: