#!/usr/bin/env bash
# PORTBUILD generated by manup.mreschke.com on 2013-04-09 01:41:21

# Variables below can NOT reference other variables, manup will not expand them.
# So fileurl="http://manup.mreschke.net/nwq/profile-base/profile-base-1.0-33.tar.gz"
# Though all variables can be accessed in the build_* functions.
# The ONLY exception to this rule is the config=(...) array, where $prefix is available

# There are also more bash variables available than you see here.
# The /usr/local/lib/manup/functions.sh is sourced before this file. Check it out.
# There are also a few set by manup, like $prefix, $fakeroot, $is_installed, $installed_ver
# Visit http://manup.mreschke.com for details

# All variables and build_* function must be present, even if empty.
# Since a bash function cannot be empty, just put in some placeholder
# like null=nothing

# Remember that manup comes with auto-destdir (http://www.dwheeler.com/auto-destdir/).
# So you should use 'make-redir DESTDIR=$fakeroot install' instead of just make.

# These files will be overwritten with every 'manup sync' command.

name=profile-base
ver=1.0
rel=33
fileurl="http://manup.mreschke.net/nwq/profile-base/profile-base-1.0-33.tar.gz"
filesize=1129028
md5sum="58a317df0a947d4fe41b492164a3ddb6"
dep=()
depopt=()
configs=()
desc="Bash profile base package"

port_configure() {
	null=nothing
}
port_build() {
	null=nothing
}
port_fakeroot() {
	copy_to_fakeroot
}
port_preinstall() {
	null=nothing
}
port_install() {
	install_files
}
port_postinstall() {
	if ! $is_installed; then
		chmod 644 /etc/nwq/profile.d/*
		notice "You must add 'source /etc/nwq/profile.bashrc' to each of your users ~/.bashrc file"
		notice "You must logout and back in or source /etc/nwq/profile.bashrc"
	fi
	notice "Refresh profile by running 're-source' or 'source /etc/nwq/profile.bashrc'"
}
port_preuninstall() {
	null=nothing
}
port_postuninstall() {
	null=nothing
}
