##################### GENERAL ##################### 
GARNAME = mailx
GARVERSION = 12.5
GARELEASE = 2
HOME_URL = http://heirloom.sourceforge.net/mailx.html
CATEGORIES = net/mail
MASTER_SITES += 
DISTFILES = heirloom-mailx-12.5.tar.gz
PATCHFILES += heirloom-mailx-12.5-fixes-1.patch
PATCHFILES += openssl-no_egd-no_sslv2.patch
MAINTAINER = Felipe Sanchez <izto@asic-linux.com.mx>
LICENSE = BSD

DESCRIPTION = A mail user agent for Unix systems
define BLURB
endef

##################### PACKAGING #####################


#IZTACI_PACKAGE_PATH =

# Users and groups the binary package will create
# WHEN INSTALLED ON THE DESTINATION SYSTEM
CREATE_GROUPS = 
CREATE_USERS = 

# This is to be appended to the package's installation script
# Use it to set file owners, permissions, DB initialization, etc.
# Remember any shell variables (Such as $ROOT) have to be escaped
# like this: \$$ROOT

define DOINST_APPEND
endef

# Required dependencies
define SLACK_REQUIRED
openssl
endef

# Suggested dependencies
define SLACK_SUGGESTS
endef

# Package conflicts (lprng vs cups for example)
define SLACK_CONFLICTS
endef



##################### BUILDING #####################


CONFIGURE_SCRIPTS =
BUILD_SCRIPTS = custom
INSTALL_SCRIPTS = $(WORKSRC)/Makefile

CONFIGURE_ARGS = $(DIRPATHS)
NODIRPATHS = 

# Directories to be created as part of the install process.
# Can be inside the final package or just transient dirs we need
# while building it.
INSTALL_DIRS = 

# If some dirs are trying to install into /, list their names
# here, such as: prefix bindir mandir
INSTALL_OVERRIDE_DIRS = 


# Dependencies are of the form categorydir/packagedir
# LIBDEPS are for libraries, and DEPENDS are for everything else
DEPENDS =
LIBDEPS =
DEPENDS =
# Builddeps are installed in the build DESTIMG
BUILDDEPS =

##################### GAR #####################

# This should go before any hand-made rules.
include config.mk
include ../level.mk

##################### CUSTOMIZING #####################

test:
	@echo
	@echo -e "$(WARNCOLOR)No tests are available for this package$(NORMALCOLOR)"
	@echo
	$(MAKECOOKIE)

build-custom:
	cd $(WORKSRC);  $(MAKE) $(BUILD_ARGS)
	$(MAKECOOKIE)

post-install:
	ln -sv mailx $(DESTDIR)/usr/bin/mail
	$(MAKE) gzip-man
	$(MAKE) etc-new
	$(MAKECOOKIE)

