SF.net SVN: gar:[26148] csw/mgar/pkg

sfbsdsx at users.sourceforge.net sfbsdsx at users.sourceforge.net
Fri Apr 21 23:47:57 CEST 2017


Revision: 26148
          http://sourceforge.net/p/gar/code/26148
Author:   sfbsdsx
Date:     2017-04-21 21:47:57 +0000 (Fri, 21 Apr 2017)
Log Message:
-----------
Add OpenSMTPD. This is a work in progress and requiert somes reviews.

Added Paths:
-----------
    csw/mgar/pkg/opensmtpd-devel/
    csw/mgar/pkg/opensmtpd-devel/Makefile
    csw/mgar/pkg/opensmtpd-devel/branches/
    csw/mgar/pkg/opensmtpd-devel/tags/
    csw/mgar/pkg/opensmtpd-devel/trunk/
    csw/mgar/pkg/opensmtpd-devel/trunk/Makefile
    csw/mgar/pkg/opensmtpd-devel/trunk/checksums
    csw/mgar/pkg/opensmtpd-devel/trunk/files/

Added: csw/mgar/pkg/opensmtpd-devel/Makefile
===================================================================
--- csw/mgar/pkg/opensmtpd-devel/Makefile	                        (rev 0)
+++ csw/mgar/pkg/opensmtpd-devel/Makefile	2017-04-21 21:47:57 UTC (rev 26148)
@@ -0,0 +1,2 @@
+%:
+	$(MAKE) -C trunk $*

Index: csw/mgar/pkg/opensmtpd-devel/trunk
===================================================================
--- csw/mgar/pkg/opensmtpd-devel/trunk	2017-04-20 22:12:28 UTC (rev 26147)
+++ csw/mgar/pkg/opensmtpd-devel/trunk	2017-04-21 21:47:57 UTC (rev 26148)

Property changes on: csw/mgar/pkg/opensmtpd-devel/trunk
___________________________________________________________________
Added: svn:ignore
## -0,0 +1 ##
+work
Added: csw/mgar/pkg/opensmtpd-devel/trunk/Makefile
===================================================================
--- csw/mgar/pkg/opensmtpd-devel/trunk/Makefile	                        (rev 0)
+++ csw/mgar/pkg/opensmtpd-devel/trunk/Makefile	2017-04-21 21:47:57 UTC (rev 26148)
@@ -0,0 +1,74 @@
+# $Id$
+# TODO (release-critical prefixed with !, non release-critical with *)
+#
+NAME = OpenSMTPD
+VERSION = 8e25e5b
+GARTYPE = v2
+DESCRIPTION = OpenSMTPD is a free MTA
+define BLURB
+  OpenSMTPD is a FREE implementation of the server-side SMTP protocol
+  as defined by RFC 5321, with some additional standard extensions.
+  It allows ordinary machines to exchange emails with other systems
+  speaking the SMTP protocol.
+  
+  Started out of dissatisfaction with other implementations, OpenSMTPD
+  is a fairly complete SMTP implementation. 
+endef
+VENDOR_URL = http://www.opensmtpd.org/
+
+GITHUB_USER = $(NAME)
+GITHUB_REFERENCE = $(VERSION)
+MASTER_SITES = $(GITHUB_MIRROR)
+DISTNAME = $(GITHUB_USER)-$(NAME)-$(GITHUB_REFERENCE)
+
+DISTFILES = $(NAME)-$(VERSION)$(GITHUB_BALL_EXT)
+DISTFILES += openbsd-compat.tgz
+DISTFILES += mapfile
+DISTFILES += cswusergroup
+
+BUILD_DEP_PKGS += CSWlibasr-dev
+BUILD_DEP_PKGS += CSWlibevent-dev
+BUILD_DEP_PKGS += CSWlibfts-dev
+BUILD_DEP_PKGS += CSWlibz-dev
+
+GARCOMPILER = GNU
+
+EXTRA_CFLAGS += -D_XOPEN_SOURCE=600 -D__EXTENSIONS__=1 -D_XPG6 -D_PATH_DEFPATH='\"/bin:/usr/bin\"'
+
+LINKER_MAPS = -M "$(abspath $(WORKDIR)/mapfile)"
+EXTRA_LINKER_FLAGS += -lnsl -lsocket
+
+CONFIGURE_ARGS = $(DIRPATHS)
+CONFIGURE_ARGS += --with-path-empty=/var/opt/csw/empty
+CONFIGURE_ARGS += --with-path-CAfile=$(sysconfdir)/ssl/cert.pem
+
+RUNTIME_DEP_PKGS += CSWlibasr0
+RUNTIME_DEP_PKGS += CSWlibevent2-0-5
+RUNTIME_DEP_PKGS += CSWlibfts0
+RUNTIME_DEP_PKGS += CSWlibssl1-0-0
+RUNTIME_DEP_PKGS += CSWlibz1
+
+USERGROUP = $(sysconfdir)/pkg/CSW$(NAME)/cswusergroup
+
+CATALOGNAME = opensmtpd
+PACKAGES    = CSW$(CATALOGNAME)
+
+include gar/category.mk
+
+pre-configure:
+	cd $(WORKSRC) && sh bootstrap
+	@$(MAKECOOKIE)
+# ifaddrs.h    taken from https://java.net/projects/solaris/sources/on-src/content/usr/src/head/ifaddrs.h?raw=true
+# getifaddrs.c taken from https://java.net/projects/solaris/sources/on-src/content/usr/src/lib/libsocket/inet/getifaddrs.c?raw=true
+# libsocket_priv.h is a gruik hack
+# flock.c      taken from http://www.perkin.org.uk/posts/solaris-portability-flock.html
+# getline.c    taken from https://github.com/ivanra/getline
+pre-build:
+	$(if $(filter 5.10,$(GAROSREL)),cp -rp $(WORKDIR)/openbsd-compat/* $(WORKSRC)/openbsd-compat)
+	@$(MAKECOOKIE)
+
+post-install-modulated:
+	@ginstall -d $(DESTDIR)$(sysconfdir)/init.d
+	@ginstall -d $(DESTDIR)$(sysconfdir)/pkg/CSW$(NAME)
+	@ginstall -m 644 $(FILEDIR)/cswusergroup $(DESTDIR)$(sysconfdir)/pkg/CSW$(NAME)/cswusergroup
+	@$(MAKECOOKIE)


Property changes on: csw/mgar/pkg/opensmtpd-devel/trunk/Makefile
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Added: csw/mgar/pkg/opensmtpd-devel/trunk/checksums
===================================================================
--- csw/mgar/pkg/opensmtpd-devel/trunk/checksums	                        (rev 0)
+++ csw/mgar/pkg/opensmtpd-devel/trunk/checksums	2017-04-21 21:47:57 UTC (rev 26148)
@@ -0,0 +1 @@
+e7e505a2b2da41291df590f669a18970  OpenSMTPD-8e25e5b.tar.gz

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list