Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 May 2000 08:10:55 -0700 (PDT)
From:      jeff@isni.net
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/18745: New ports submission (second request)
Message-ID:  <20000522151055.594B937B5F4@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         18745
>Category:       ports
>Synopsis:       New ports submission (second request)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 22 08:20:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Jeff Palmer
>Release:        4.0-STABLE
>Organization:
>Environment:
FreeBSD FreeBSD.rootwars.net 4.0-STABLE FreeBSD 4.0-STABLE #0: Mon May 22 08:48:29 EDT 2000     root@FreeBSD.rootwars.net:/usr/obj/usr/src/sys/FreeBSD  i386
>Description:
# 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


>How-To-Repeat:
I tried submitting this port via send-pr  and failed,  I have also tried submitting it via email,   now I'll try the web interface for send-pr

I read the man pages for send-pr  but, well,  obviously it didn't work.
Sorry for pasting code into this document.

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000522151055.594B937B5F4>