From jeff@isni.net  Mon May 15 08:08:29 2000
Return-Path: <jeff@isni.net>
Received: from earth.isni.net (earth.isni.net [208.160.180.2])
	by hub.freebsd.org (Postfix) with ESMTP id 92E7337B7C8
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 15 May 2000 08:08:27 -0700 (PDT)
	(envelope-from jeff@isni.net)
Received: from planet.isni.net (planet.isni.net [208.160.180.236])
	by earth.isni.net (8.10.1/8.9.0) with ESMTP id e4FF8OL08357
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 15 May 2000 11:08:25 -0400 (EDT)
Message-Id: <4.3.1.0.20000515110259.00a816d0@mail.isni.net>
Date: Mon, 15 May 2000 11:08:22 -0400
From: Jeff Palmer <jeff@isni.net>
To: FreeBSD-gnats-submit@freebsd.org
Subject: new/update ports submission

>Number:         18568
>Category:       ports
>Synopsis:       new/update ports submission
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    alex
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 15 08:10:00 PDT 2000
>Closed-Date:    Tue Jul 18 14:30:09 PDT 2000
>Last-Modified:  Tue Jul 18 14:34:57 PDT 2000
>Originator:     Jeff Palmer
>Release:        FreeBSD 4.0-STABLE i386
>Organization:
>Environment:
 
   	FreeBSD 4.0-Stable

>Description:
 
 	New ports submission
 
>How-To-Repeat:
 
>Fix:

I'm sorry if this doesn't work,  or is hard to read,  I have never used 
 send-pr  and don't know how to include the ouput of "shar" with send-pr

--=====================_7929777==_
 Content-Type: text/plain; charset="us-ascii"
 Content-Disposition: attachment; filename="popper310.port.shar.sh"
 
 # This is a shell archive.  Save it in a file, remove anything before
 # this line, and then unpack it by entering "sh file".  Note, it may
 # create directories; files and directories will be owned by you and
 # have default permissions.
 #
 # This archive contains:
 #
 #	popper310
 #	popper310/scripts
 #	popper310/scripts/pre-install
 #	popper310/files
 #	popper310/files/md5
 #	popper310/files/sendto.c
 #	popper310/patches
 #	popper310/pkg
 #	popper310/pkg/COMMENT
 #	popper310/pkg/DESCR
 #	popper310/pkg/PLIST
 #	popper310/pkg/REQ
 #	popper310/README.html
 #	popper310/Makefile
 #
 echo c - popper310
 mkdir -p popper310 > /dev/null 2>&1
 echo c - popper310/scripts
 mkdir -p popper310/scripts > /dev/null 2>&1
 echo x - popper310/scripts/pre-install
 sed 's/^X//' >popper310/scripts/pre-install << 'END-of-popper310/scripts/pre-install'
 X#!/bin/sh
 Xif ! id -u pop > /dev/null 2>&1; then
 X  echo "You need an account \"pop\" to install this package."
 X  echo "Please add it by hand (try \"man vipw\") and try again."
 X  echo ""
 X  echo "An example passwd entry is:"
 X  echo "pop:*:68:6::0:0:Post Office Owner:/nonexistent:/nonexistent"
 X  echo ""
 X  exit 1
 Xfi
 Xusrdir=${PREFIX}/etc/popper
 Xif [ ! -d $usrdir ]; then
 X  mkdir -p $usrdir
 Xfi
 Xchown pop.daemon $usrdir
 Xchmod 700 $usrdir
 END-of-popper310/scripts/pre-install
 echo c - popper310/files
 mkdir -p popper310/files > /dev/null 2>&1
 echo x - popper310/files/md5
 sed 's/^X//' >popper310/files/md5 << 'END-of-popper310/files/md5'
 XMD5 (qpopper3.0.1.tar.Z) = 5161da8f062fcccb6e57e1dac8acb433
 END-of-popper310/files/md5
 echo x - popper310/files/sendto.c
 sed 's/^X//' >popper310/files/sendto.c << 'END-of-popper310/files/sendto.c'
 X#ifdef YOUBIN
 X/*
 X * Program:     $RCSfile: sendto.c,v $  $Revision: 1.1 $
 X *
 X * Purpose:     Send a message with UDP packet.
 X *              Invoked from mh-inc-folder-hook.
 X *
 X * Usage:       sendto <host> <service> <message>
 X *
 X * Author:      K.Agusa     agusa@nuie.nagoya-u.ac.jp
 X *              S.Yamamoto  yamamoto@nuie.nagoya-u.ac.jp
 X *
 X * Modified:    K.Makimura  macky@agusa.nuie.nagoya-u.ac.jp
 X *
 X * Date:        1993/07/24
 X * Modified:    $Date: 1998/08/04 22:41:00 $
 X *
 X * Copyright:   K.Agusa and S.Yamamoto  1993 - 94
 X *
 X * The X Consortium, and any party obtaining a copy of these files from
 X * the X Consortium, directly or indirectly, is granted, free of charge,
 X * a full and unrestricted irrevocable, world-wide, paid up, royalty-free,
 X * nonexclusive right and license to deal in this software and documentation
 X * files (the "Software"), including without limitation the rights to use,
 X * copy, modify, merge, publish, distribute, sublicense, and/or sell copies
 X * of the Software, and to permit persons who receive copies from any such
 X * party to do so. This license includes without limitation a license to do
 X * the foregoing actions under any patents of the party supplying this
 X * software to the X Consortium.
 X */
 X
 X#ifndef lint
 Xstatic char rcsid[] =
 X  "$FreeBSD: ports/mail/popper/files/sendto.c,v 1.2 1999/08/30 12:06:26 peter Exp $";
 X#endif /* not lint */
 X
 X#include <sys/types.h>
 X#include <sys/socket.h>
 X#include <sys/param.h>
 X#include <netinet/in.h>
 X#include <netdb.h>
 X#include <stdio.h>
 X
 X/* 
 X *                  Platform definitions.
 X */
 X
 X#if defined(SVR4) && !defined(SYSV)
 X#define SYSV
 X#endif /* defined(SVR4) && !defined(SYSV) */
 X
 X/*
 X *                  For compatibility.
 X */
 X
 X#ifdef SYSV
 X#include <string.h>                         /* For strchr(). */
 X#else /* not SYSV */
 X#include <strings.h>
 X#if !defined(strchr) && !defined(strrchr)
 X#define strchr(str, c)          index((str), (c))
 X#define strrchr(str, c)         rindex((str), (c))
 X#endif /* !defined(strchr) && !defined(strrchr) */
 X#endif /* not SYSV */
 X
 X#ifdef SYSV
 X#define bzero(dst, len)         memset((dst), '\0', (len))
 X#define bcopy(src, dst, len)    memcpy((dst), (src), (len))
 X#endif
 X
 Xstatic struct sockaddr_in  sa;              /* Server address. */
 Xstatic int                 sockid;          /* Socket Id. */
 Xstatic char                err_msg[256];
 X
 Xstatic char *
 Xudp_init(host, service)
 Xchar    *host;
 Xchar    *service;
 X{
 X    struct hostent *hp;                     /* Result of host name lookup. */
 X    struct servent *sp;                     /* Result of service lookup. */
 X    
 X    if ((hp = gethostbyname(host)) == NULL) {
 X        sprintf(err_msg, "No such host: %s", host);
 X        return (err_msg);
 X    }
 X    if ((sp = getservbyname(service, "udp")) == NULL) {
 X        sprintf(err_msg, "No such service: %s", service);
 X        return (err_msg);
 X    }
 X    if ((sockid = socket(hp->h_addrtype, SOCK_DGRAM, 0)) < 0) {
 X        sprintf(err_msg, "Error in getting socket");
 X        return (err_msg);
 X    }
 X    
 X    bzero((char *)&sa, sizeof(sa));
 X    sa.sin_family = hp->h_addrtype;
 X    bcopy((char *)hp->h_addr, (char *)&sa.sin_addr, hp->h_length);
 X    sa.sin_port = sp->s_port;
 X    
 X    return ((char *)NULL);
 X}
 X
 Xstatic char *
 Xudp_send(message)
 Xchar    *message;
 X{
 X    int   len;
 X    
 X    len = strlen(message);
 X    if (sendto(sockid, message, len, 0, (struct sockaddr *)&sa, sizeof(sa)) != len) {
 X        sprintf(err_msg, "Error in sending packet");
 X        return (err_msg);
 X    }
 X    return ((char *)NULL);
 X}
 X
 X#ifndef CALLED_FROM_POPD
 X
 Xvoid
 Xmain(argc, argv)
 Xint     argc;
 Xchar    **argv;
 X{
 X    char    *msg;
 X    char    *prog_name;
 X    
 X    if ((prog_name = strrchr(argv[0], '/')) != NULL) {
 X        prog_name++;
 X    } else {
 X        prog_name = argv[0];
 X    }
 X
 X    if (argc != 4) {
 X        fprintf(stderr, "%s: Usage: sendto <host> <service> <message>\n",
 X                prog_name);
 X        exit(1);
 X    }
 X    if ((msg = udp_init(argv[1], argv[2])) != NULL) {
 X        fprintf(stderr, "%s: %s\n", prog_name, msg);
 X        exit(1);
 X    }
 X    if ((msg = udp_send(argv[3])) != NULL) {
 X        fprintf(stderr, "%s: %s\n", prog_name, msg);
 X        exit(1);
 X    }
 X    exit(0);
 X}
 X
 X#else /* CALLED_FROM_POPD */
 X
 X#ifndef YOUBINSERVICE
 X#define YOUBINSERVICE       "biff"          /* For patch to popd. */
 X#endif /* not YOUBINSERVICE */
 X
 Xvoid
 Xsendto_youbin(username)
 Xchar    *username;
 X{
 X    char  msg[256];
 X    
 X    if (udp_init("localhost", YOUBINSERVICE) != NULL) {
 X        return;
 X    }
 X    sprintf(msg, "U %s", username);
 X    udp_send(msg);
 X}
 X
 X#endif /* CALLED_FROM_POPD */
 X#endif /* YOUBIN */
 END-of-popper310/files/sendto.c
 echo c - popper310/patches
 mkdir -p popper310/patches > /dev/null 2>&1
 echo c - popper310/pkg
 mkdir -p popper310/pkg > /dev/null 2>&1
 echo x - popper310/pkg/COMMENT
 sed 's/^X//' >popper310/pkg/COMMENT << 'END-of-popper310/pkg/COMMENT'
 XBerkeley POP 3 server (now maintained by Qualcomm)
 END-of-popper310/pkg/COMMENT
 echo x - popper310/pkg/DESCR
 sed 's/^X//' >popper310/pkg/DESCR << 'END-of-popper310/pkg/DESCR'
 XThis is a POP 3 server useful for dealing with remote mail reader clients
 Xsuch as Eudora.
 X
 XDon't forget to edit /etc/inetd.conf to enable the server after installation.
 END-of-popper310/pkg/DESCR
 echo x - popper310/pkg/PLIST
 sed 's/^X//' >popper310/pkg/PLIST << 'END-of-popper310/pkg/PLIST'
 Xbin/popauth
 Xlibexec/popper
 END-of-popper310/pkg/PLIST
 echo x - popper310/pkg/REQ
 sed 's/^X//' >popper310/pkg/REQ << 'END-of-popper310/pkg/REQ'
 Xif [ "$2" != "INSTALL" ]; then
 X  exit 0
 Xfi
 Xif ! id -u pop > /dev/null 2>&1; then
 X  echo "You need an account \"pop\" to install this package."
 X  echo "Please add it by hand (try \"man vipw\") and try again."
 X  echo ""
 X  echo "An example passwd entry is:"
 X  echo "pop:*:68:6::0:0:Post Office Owner:/nonexistent:/nonexistent"
 X  echo ""
 X  exit 1
 Xfi
 Xexit 0
 END-of-popper310/pkg/REQ
 echo x - popper310/README.html
 sed 's/^X//' >popper310/README.html << 'END-of-popper310/README.html'
 X<html>
 X<title> The FreeBSD Ports Collection (mail/popper)</title>
 X<head><h1> The FreeBSD Ports Collection ("mail/popper")</h1> </head> <hr>
 X<body>
 X
 X<p>You are now in the directory for the port "mail/popper" (package name "qpopper-2.53").
 X
 X<p>This is the one-line description for this port:
 X
 X<p><hr><p>
 XBerkeley POP 3 server (now maintained by Qualcomm)
 X<p><hr>
 X
 X<p>Please read the file "<a href="pkg/DESCR">pkg/DESCR</a>" for a
 Xlonger description.
 X
 X<p>Go to the <a href="../../README.html">top of the ports tree</a> for
 Xa summary on how to use the ports collection.
 X
 X<p>
 X
 X<p>
 X
 X
 X<p><hr><p>
 X<a href="../README.html"> Go up one level</a>
 X|
 X<a href="../../README.html"> Go to top of ports tree</a>
 X</body>
 X</html>
 END-of-popper310/README.html
 echo x - popper310/Makefile
 sed 's/^X//' >popper310/Makefile << 'END-of-popper310/Makefile'
 X# New ports collection makefile for:	popper 3.0.1
 X# Date created:		Mon May 15 10:45:28 EDT 2000
 X# Whom:			Jeff Palmer
 X#
 X# $FreeBSD:
 X#
 X
 XPORTNAME=	qpopper
 XPORTVERSION= 	3.0.1
 XCATEGORIES=	mail
 XMASTER_SITES=   ftp://ftp.qualcomm.com/eudora/servers/unix/popper/
 XDISTNAME=	${PORTNAME}${PORTVERSION}
 XEXTRACT_SUFX=	.tar.Z
 X
 XMAINTAINER=	jeff@isni.net
 X
 X# Set POPD_YOUBIN_SUPPORT variable in the environment to enable
 X# youbin support.
 X#
 X# If APOP_ONLY variable present in the environment, popper builds
 X# with APOP authentification only.
 X#
 X# If FULL_POPD_DEBUG variable present in the environment, popper builds
 X# with more verbose debugging.
 X
 XO_DEFS=         -DSETPROCTITLE -DKEEP_TEMP_DROP -DBSD44_DBM -DBIND43 \
 X		-DBULLDB -DNONAUTHFILE='\"/etc/ftpusers\"'
 X
 X.if !defined(APOP_ONLY)
 X.if exists(/usr/lib/libskey.a)
 XP_LIBS=         -lskey
 XO_DEFS+=        -DSKEY
 X.endif
 X.else
 XO_DEFS+=        -DAPOP_ONLY
 X.endif
 X
 X.if defined(POPD_YOUBIN_SUPPORT)
 XO_DEFS+=        -DYOUBIN -DCALLED_FROM_POPD
 X.endif
 X
 XP_LIBS+=        -lmd -lutil
 X
 XGNU_CONFIGURE=          yes
 XCONFIGURE_ARGS=         --enable-apop=${PREFIX}/etc/popper/pop.auth \
 X			--with-apopuid=pop
 X.if defined(FULL_POPD_DEBUG)
 XCONFIGURE_ARGS+=        --enable-debugging
 X.endif
 XCONFIGURE_ENV=          LIBS="${P_LIBS}" O_DEFS="${O_DEFS}"
 X
 XMAN8=   popauth.8 popper.8
 X
 X
 Xdo-install:
 X	cd ${WRKSRC} && \
 X		${INSTALL_PROGRAM} popper/popauth ${PREFIX}/bin
 X	cd ${WRKSRC} && \
 X		${INSTALL_PROGRAM} popper/popper ${PREFIX}/libexec
 X	cd ${WRKSRC} && \
 X		${INSTALL_MAN} man/popauth.8 man/popper.8 ${PREFIX}/man/man8
 X
 X.include <bsd.port.mk>
 END-of-popper310/Makefile
 exit
 
 
 --=====================_7929777==_--
 
 
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->freebsd-ports 
Responsible-Changed-By: asmodai 
Responsible-Changed-When: Sat May 27 14:26:41 PDT 2000 
Responsible-Changed-Why:  
Another PR which got botched. 
Responsible-Changed-From-To: freebsd-ports->alex 
Responsible-Changed-By: alex 
Responsible-Changed-When: Tue Jul 18 10:31:34 PDT 2000 
Responsible-Changed-Why:  
I asked for a repo-cpy 

http://www.freebsd.org/cgi/query-pr.cgi?pr=18568 
State-Changed-From-To: open->closed 
State-Changed-By: alex 
State-Changed-When: Tue Jul 18 14:30:09 PDT 2000 
State-Changed-Why:  
This PR is bogus in some ways. 

I really cannot figure out what you tried to do: 

a) Update to popper310 - 310 is a bogus name. 
If you meant 3.1 beta, this PR is complete useless. 
In fact, I just happened to update it to 3.1 myself. 

b) Make a new port. 
Well, I really tried, but I could not make SOMETHING work with 
the stuff you did with the Port. 
popper 3.0.2 is already in the popper3 port, so you should 
have sent a diff better. However, this doesn't matter. 
I tried to make it work anyways, but I can neither get it working 
nor know, what it is (so I could fix it). 

This is why I'm closing this PR. 
If you want to UPDATE the popper3 port, please send a patch and describe, 
what this patch does respectively what the port does then :) 


http://www.freebsd.org/cgi/query-pr.cgi?pr=18568 
>Unformatted:
