Bug 157589 - Fix port: irc/ptlink-services should use USERS
Summary: Fix port: irc/ptlink-services should use USERS
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Chris Rees
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-04 10:30 UTC by Chris Rees
Modified: 2011-09-03 16:00 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Rees 2011-06-04 10:30:20 UTC
	

	This port uses pkg-install to create new users instead of using USERS= and GROUPS=

Fix: - Use USERS and GROUPS

	Submitted by: Chris Rees (utisoft@gmail.com)

	Please note that pkg-install has been removed




-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.--Dtoh5AnWSP7ScjTAdWQgrA805hKfrCR2sBu73jtlU7W7RpnS
Content-Type: text/plain; name="irc-ptlink-services.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="irc-ptlink-services.patch"

Index: Makefile
===================================================================
RCS file: /exports/cvsroot-freebsd/ports/irc/ptlink-services/Makefile,v
retrieving revision 1.12
diff -u -r1.12 Makefile
--- Makefile	19 Mar 2011 13:15:23 -0000	1.12
+++ Makefile	2 Jun 2011 19:44:11 -0000
@@ -21,6 +21,9 @@
 USE_PERL5=	yes
 USE_MYSQL=	yes
 
+USERS=		ircd
+GROUPS=		${USERS}
+
 USE_RC_SUBR=	ptlink-services.sh
 SUB_FILES=	pkg-message
 
@@ -30,7 +33,6 @@
 		--with-pidfile=/var/run/ircsvs.pid
 
 post-install:
-	@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
 	@${CHOWN} -R ircd:ircd ${SYSCONFDIR}
 	@${CAT} ${PKGMESSAGE}
 
Index: pkg-install
===================================================================
RCS file: pkg-install
diff -N pkg-install
--- pkg-install	3 Aug 2006 16:57:40 -0000	1.2
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,28 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD: ports/irc/ptlink-services/pkg-install,v 1.2 2006/08/03 16:57:40 garga Exp $
-#
-
-case $2 in
-POST-INSTALL)
-	USER=ircd
-	GROUP=ircd
-	UID=72
-	GID=72
-
-	if pw groupshow "${GROUP}" > /dev/null 2>&1; then
-	   echo "===> Using existing group ${GROUP}"
-	else
-	   echo "===> Adding group ${GROUP}"
-	   pw groupadd ${GROUP} -g ${GID} || exit 1
-	fi
-
-	if pw usershow "${USER}" > /dev/null 2>&1; then
-	   echo "===> Using existing user ${USER}"
-	else
-	   echo "===> Adding user ${USER}"
-	   pw adduser ${USER} -u ${UID} -g ${GROUP} -h - -d "/nonexistent" \
-	      -s "/nonexistent" -c "IRC daemon" || exit 1
-	fi
-	;;
-esac
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2011-06-04 10:32:26 UTC
Responsible Changed
From-To: freebsd-ports-bugs->pgollucci

pgollucci@ wants his PRs (via the GNATS Auto Assign Tool)
Comment 2 Chris Rees freebsd_committer freebsd_triage 2011-06-22 17:53:21 UTC
Responsible Changed
From-To: pgollucci->crees

Invalid autoassignment
Comment 3 Chris Rees freebsd_committer freebsd_triage 2011-06-22 18:01:46 UTC
Responsible Changed
From-To: crees->freebsd-ports-bugs

To pool to correct assign message
Comment 4 Chris Rees freebsd_committer freebsd_triage 2011-06-22 18:24:33 UTC
Responsible Changed
From-To: freebsd-ports-bugs->crees

Invalid autoassignment to pgollucci
Comment 5 dfilter service freebsd_committer freebsd_triage 2011-07-03 14:56:29 UTC
crees       2011-07-03 13:56:15 UTC

  FreeBSD ports repository

  Modified files:
    irc/ptlink-services  Makefile 
  Removed files:
    irc/ptlink-services  pkg-install 
  Log:
  - Use USERS and GROUPS
  - Deprecate-- no upstream and distfile gone
  
  PR:             ports/157589
  Submitted by:   Chris Rees (utisoft@gmail.com)
  Approved by:    rene (mentor)
  
  Revision  Changes    Path
  1.13      +6 -1      ports/irc/ptlink-services/Makefile
  1.3       +0 -28     ports/irc/ptlink-services/pkg-install (dead)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 6 Chris Rees freebsd_committer freebsd_triage 2011-07-03 14:56:38 UTC
State Changed
From-To: open->patched

Deprecated for removal in two months
Comment 7 Chris Rees freebsd_committer freebsd_triage 2011-09-03 15:56:55 UTC
State Changed
From-To: patched->closed

Port removed.
Comment 8 dfilter service freebsd_committer freebsd_triage 2011-09-03 15:56:55 UTC
crees       2011-09-03 14:56:36 UTC

  FreeBSD ports repository

  Modified files:
    .                    MOVED 
    irc                  Makefile 
  Removed files:
    irc/ptlink-ircd      Makefile distinfo pkg-descr pkg-plist 
    irc/ptlink-ircd/files pkg-message.in ptlink-ircd.sh.in 
    irc/ptlink-services  Makefile distinfo pkg-descr pkg-plist 
    irc/ptlink-services/files patch-configure pkg-message.in 
                              ptlink-services.sh.in 
  Log:
  Remove expired ports:
  
  2011-09-03 irc/ptlink-ircd: No upstream source, no distfile and no maintainer
  2011-09-03 irc/ptlink-services: No upstream source, no distfile and no maintainer
  
  PR:             ports/157588 ports/157589
  Submitted by:   me
  
  Revision  Changes    Path
  1.2584    +3 -1      ports/MOVED
  1.217     +0 -2      ports/irc/Makefile
  1.10      +0 -50     ports/irc/ptlink-ircd/Makefile (dead)
  1.7       +0 -2      ports/irc/ptlink-ircd/distinfo (dead)
  1.3       +0 -11     ports/irc/ptlink-ircd/files/pkg-message.in (dead)
  1.5       +0 -25     ports/irc/ptlink-ircd/files/ptlink-ircd.sh.in (dead)
  1.3       +0 -6      ports/irc/ptlink-ircd/pkg-descr (dead)
  1.8       +0 -28     ports/irc/ptlink-ircd/pkg-plist (dead)
  1.14      +0 -42     ports/irc/ptlink-services/Makefile (dead)
  1.11      +0 -2      ports/irc/ptlink-services/distinfo (dead)
  1.3       +0 -11     ports/irc/ptlink-services/files/patch-configure (dead)
  1.3       +0 -11     ports/irc/ptlink-services/files/pkg-message.in (dead)
  1.4       +0 -25     ports/irc/ptlink-services/files/ptlink-services.sh.in (dead)
  1.4       +0 -6      ports/irc/ptlink-services/pkg-descr (dead)
  1.10      +0 -135    ports/irc/ptlink-services/pkg-plist (dead)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"