From patchwork Tue May 7 15:15:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Brant Gardner X-Patchwork-Id: 13926 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 2A36A16FC6; Tue, 7 May 2019 16:17:11 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,HTML_MESSAGE, T_DKIM_INVALID,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 87A9D16FC0 for ; Tue, 7 May 2019 16:17:07 +0100 (BST) Received: from localhost ([127.0.0.1]:48432 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hO1q6-0007fq-Vy for patchwork@mira.cbaines.net; Tue, 07 May 2019 11:17:07 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57833) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hO1q4-0007fZ-4k for guix-patches@gnu.org; Tue, 07 May 2019 11:17:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hO1q2-0002kG-Nw for guix-patches@gnu.org; Tue, 07 May 2019 11:17:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45792) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hO1q2-0002k8-KC for guix-patches@gnu.org; Tue, 07 May 2019 11:17:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hO1q2-00049c-DN for guix-patches@gnu.org; Tue, 07 May 2019 11:17:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#35619] WIP version of postfix.scm Resent-From: "Brant Gardner" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 07 May 2019 15:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35619 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 35619@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.155724218715911 (code B ref -1); Tue, 07 May 2019 15:17:02 +0000 Received: (at submit) by debbugs.gnu.org; 7 May 2019 15:16:27 +0000 Received: from localhost ([127.0.0.1]:59336 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hO1pM-00048R-Ep for submit@debbugs.gnu.org; Tue, 07 May 2019 11:16:26 -0400 Received: from eggs.gnu.org ([209.51.188.92]:43239) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hO1pK-000489-Dz for submit@debbugs.gnu.org; Tue, 07 May 2019 11:16:19 -0400 Received: from lists.gnu.org ([209.51.188.17]:53795) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hO1p7-0002LF-Ge for submit@debbugs.gnu.org; Tue, 07 May 2019 11:16:11 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57607) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hO1p5-0007Cu-Vf for guix-patches@gnu.org; Tue, 07 May 2019 11:16:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hO1oy-0002JB-SO for guix-patches@gnu.org; Tue, 07 May 2019 11:16:00 -0400 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:50469) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hO1oy-0002HM-1B for guix-patches@gnu.org; Tue, 07 May 2019 11:15:56 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id 4A46C348 for ; Tue, 7 May 2019 11:15:51 -0400 (EDT) Received: from imap2 ([10.202.2.52]) by compute2.internal (MEProxy); Tue, 07 May 2019 11:15:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brantware.com; h=mime-version:message-id:date:from:to:subject:content-type; s= fm2; bh=ZIGAlOrLv7fh4JEDCUgc8+4wePsGhoZ9r+uV/I9Eokg=; b=naFTrf1S zJQvf8tD+7Ss91SXaYUUaCZmIgQy4UaCBHaE8Vr0URLIHZQUAewqMqrIR333v/1J xHC20qkh50oo/HLmzCi730ZLthXikTDpgRINa8Mzj8m9PU8+6/KsxCuRnqPmXdVl 8llAl6ylyNcU804t1iI2LyPSI4mO7SHtmh5hXkNRKwMO4SULg6YrUDrIWsygSEIC 422AEknZTAIPyvymegdzPY/cir7oJfkL+BgLMT9BxxN4NeCBmf/wNnmSiY2bSjhC Crg/Uyfyh/vww+uULt4eH6P+bJawv3nZg0p+Hnw7UwF+ld6OM0HKSoT/Sc1MqqdO yQZfqU+Jd91DPw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=ZIGAlOrLv7fh4JEDCUgc8+4wePsGh oZ9r+uV/I9Eokg=; b=ppxtVrJtPfRrzBiKpgqbUcvzqujoxy4lbol4T2JST9y7s /3pqWPrLk8/YACuHuMxFFe/7c5DwQBCDL6CgLxb7XTv+uvIVWvpBOnGyFYZqgb4+ 6n36xDEbGBBrAZOEY1cQVVtJW+Bid/uUun4YB0KrAvR9KcVlrXneyTgte12dhGk9 CgLvUWfQLPpT7Tlpzp709oWyJfIyX7SrUsY2HHKg/Z0GlM+ZrigQLzzhM4v1RBOc +ekuxvxkKWBVCeT05KwBHQ/4DnWn25pT8Cw9FokNX86hyz4D6Ug52ED06SiqF3qW L2de4TmkzLhQ+pX00cWdZTJATS/QhYGutJ9L9Vtag== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrkedtgdeludcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkfffhvffutgesmhdtreerre ertdenucfhrhhomhepfdeurhgrnhhtucfirghrughnvghrfdcuoegsrhgrnhhttghgrghr ughnvghrsegsrhgrnhhtfigrrhgvrdgtohhmqeenucfrrghrrghmpehmrghilhhfrhhomh epsghrrghnthgtghgrrhgunhgvrhessghrrghnthifrghrvgdrtghomhenucevlhhushht vghrufhiiigvpedt X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 8A4AA7C130; Tue, 7 May 2019 11:15:50 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.6-449-gfb3fc5a-fmstable-20190430v1 Mime-Version: 1.0 Message-Id: <567ff351-d0f4-4143-af85-4a0e5c83c012@www.fastmail.com> Date: Tue, 07 May 2019 11:15:18 -0400 From: "Brant Gardner" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches I've gotten it to the point where it builds but does not install - Postfix seems to have a non-standard install procedure and I'm not sure how to proceed. 'guix lint' is mostly happy with it and I tried to follow standards but I'm still new at this so any comments are appreciated. Thank you! --- Brant Gardner From 212731a40d9ad0f41c757d42aacc98efbf3f9ddf Mon Sep 17 00:00:00 2001 From: Brant Gardner Date: Tue, 7 May 2019 10:09:08 -0500 Subject: [PATCH] gnu: Add postfix WIP. * gnu/packages/postfix.scm (postfix): New public variable. --- gnu/packages/postfix.scm | 85 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 gnu/packages/postfix.scm diff --git a/gnu/packages/postfix.scm b/gnu/packages/postfix.scm new file mode 100644 index 0000000000..6585c108e4 --- /dev/null +++ b/gnu/packages/postfix.scm @@ -0,0 +1,85 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2019 Brant Gardner +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages postfix) + #:use-module (guix packages) + #:use-module (guix download) + #:use-module (guix build-system gnu) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (gnu packages autotools) + #:use-module (gnu packages base) + #:use-module (gnu packages pkg-config) + #:use-module (gnu packages dbm) + #:use-module (gnu packages onc-rpc) + #:use-module (gnu packages perl)) + +(define-public postfix + (package + (name "postfix") + (version "3.4.5") + (source (origin + (method url-fetch) + (uri + (string-append + "ftp://ftp.porcupine.org/mirrors/project-history/postfix/official/postfix-" + version ".tar.gz")) + (sha256 + (base32 + "17riwr21i9p1h17wpagfiwkpx9bbx7dy4gpdl219a11akm7saawb")))) + (build-system gnu-build-system) + (arguments '(#:phases + (modify-phases %standard-phases + (add-before 'build 'patch-/bin/sh + (lambda _ + (substitute* (find-files "." "^Makefile.in") + (("/bin/sh") (which "sh"))) + #t)) + (add-before 'build 'auxlibs + (lambda _ + (setenv "AUXLIBS" + "-lnsl -lresolv") ; Required, but postfix OS + ; detection in leaves these + ; unset for Guix + #t)) + (add-before 'build 'patch-/usr/include + (lambda* (#:key inputs #:allow-other-keys) + (substitute* '("makedefs") + (("/usr/include") (string-append (assoc-ref + inputs "bdb") + "/include"))) #t)) + (add-before 'build 'configure-postfix ; Move configuration folder + (lambda* (#:key outputs #:allow-other-keys) + (invoke "make" "makefiles" + (string-append "CCARGS=-DDEF_CONFIG_DIR=\\\"" + (assoc-ref outputs "out") "/etc\\\"")) #t)) + (delete 'configure) ; no configure script + (delete 'check)))) ; no check + (inputs `(("bdb" ,bdb) + ("libnsl" ,libnsl))) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("libtool" ,libtool) + ("perl" ,perl) + ("pkg-config" ,pkg-config))) + (synopsis "Full-featured & secure sendmail replacement") + (description "Postfix attempts to be fast, easy to administer, and +secure. The outside has a definite Sendmail-ish flavor, but the inside is +completely different.") + (home-page "https://www.postfix.org/") + (license license:ibmpl1.0))) -- 2.21.0