Re: Hotfix and unbreak update that need to be commited

2015-02-08 Thread Fernando Apesteguía
On Sat, Feb 7, 2015 at 6:23 PM, Antoine Brodin anto...@freebsd.org wrote:
 On Sat, Feb 7, 2015 at 5:12 PM, Kurt Jaeger li...@opsec.eu wrote:
 Hi!

  jbeich suggests in

  https://lists.freebsd.org/pipermail/svn-ports-all/2015-February/084775.html

  that you improve the patch using SRC_BASE and test if SRC_BASE
  is available. Can you submit this and send me the PR ? I'll get it
  committed.

 Done:

 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197394

 Committed, thanks!

 I fixed the check but this still looks wrong,  why doesn't the port
 link dynamically against zlib?
 If there is a vulnerability in zlib, the port won't be fixed by a zlib update.

I'll have a look at it when I can.

Cheers.


 Cheers,

 Antoine
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Why is pkg writting informational output to stderr??

2015-02-08 Thread Willem Jan Withagen
Hi,

I'm using a small tool (cronic) to reduce reporting pollution.
And one of the ways of doing it, is scanning stderr and exit-values.

But pkg emits this informational message over stderr.

Any chance of changing this line to stdout as well??

Regards,
--WjW


 Forwarded Message 
Subject: Cron root@rack1 cronic /usr/sbin/pkg audit -F
Date: Sun,  8 Feb 2015 06:56:00 +0100 (CET)
From: Cron Daemon r...@smtp.digiware.nl
To: r...@smtp.digiware.nl

Cronic detected failure or error output for the command:
/usr/sbin/pkg audit -F

RESULT CODE: 0

ERROR OUTPUT:
pkg: vulnxml file up-to-date

STANDARD OUTPUT:
0 problem(s) in the installed packages found.


___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: Is pkg-install the best solution?

2015-02-08 Thread Chris H
On Mon, 09 Feb 2015 07:30:47 +0100 olli hauer oha...@gmx.de wrote

 On 2015-02-09 03:05, Chris H wrote:
  Greetings,
   I'm working with a port that [conditionally] requires
  creating/setting a UID  GID. Following is my approach
  for a pkg-install. But would simply setting them as
  USERS=
  GROUPS=
  in Makefile be a better approach?
  pkg-install:
  #!/bin/sh
  
  PATH=/bin:/usr/sbin
  
  if [ -z ${WRAP_USER} ]; then
  WRAP_USER=myapp
  fi
  
  case $2 in
  PRE-INSTALL)
  UID=181
  GID=${UID}
  if [ ! -d ${MYAPP_DIR} ]; then
  mkdir -p ${MYAPP_DIR}
  fi
  if pw user show ${WRAP_USER} 2/dev/null; then
  echo You already have a user \${WRAP_USER}\, so I will use it.
  if pw usermod ${WRAP_USER} -d ${MYAPP_DIR}
  then
  echo Changed home directory of \${WRAP_USER}\ to
  \${MYAPP_DIR}\  else
  ${MYAPP_DIR}\ failed...
 snip ...
 
 Hi Chris,
 
 go with USERS,GROUPS in Makefile and if the user/group does not already exist
 in ports/UIDs, ports/GIDs request one together with the new port. 

 Using pkg-install to create users/groups is deprecated.
Perfect. Good to know.
Thank you, olli!
Greatly appreciated. :)

--Chris
 
 -- 
 Regards,
 olli


___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: Is pkg-install the best solution?

2015-02-08 Thread olli hauer
On 2015-02-09 03:05, Chris H wrote:
 Greetings,
  I'm working with a port that [conditionally] requires
 creating/setting a UID  GID. Following is my approach
 for a pkg-install. But would simply setting them as
 USERS=
 GROUPS=
 in Makefile be a better approach?
 pkg-install:
 #!/bin/sh
 
 PATH=/bin:/usr/sbin
 
 if [ -z ${WRAP_USER} ]; then
   WRAP_USER=myapp
 fi
 
 case $2 in
 PRE-INSTALL)
   UID=181
   GID=${UID}
   if [ ! -d ${MYAPP_DIR} ]; then
   mkdir -p ${MYAPP_DIR}
   fi
   if pw user show ${WRAP_USER} 2/dev/null; then
   echo You already have a user \${WRAP_USER}\, so I will use 
 it.
   if pw usermod ${WRAP_USER} -d ${MYAPP_DIR}
   then
   echo Changed home directory of \${WRAP_USER}\ to 
 \${MYAPP_DIR}\
   else
   ${MYAPP_DIR}\ failed...
snip ...

Hi Chris,

go with USERS,GROUPS in Makefile and if the user/group does not already exist 
in ports/UIDs, ports/GIDs request one together with the new port.

Using pkg-install to create users/groups is deprecated.

-- 
Regards,
olli
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Is pkg-install the best solution?

2015-02-08 Thread Chris H
Greetings,
 I'm working with a port that [conditionally] requires
creating/setting a UID  GID. Following is my approach
for a pkg-install. But would simply setting them as
USERS=
GROUPS=
in Makefile be a better approach?
pkg-install:
#!/bin/sh

PATH=/bin:/usr/sbin

if [ -z ${WRAP_USER} ]; then
WRAP_USER=myapp
fi

case $2 in
PRE-INSTALL)
UID=181
GID=${UID}
if [ ! -d ${MYAPP_DIR} ]; then
mkdir -p ${MYAPP_DIR}
fi
if pw user show ${WRAP_USER} 2/dev/null; then
echo You already have a user \${WRAP_USER}\, so I will use 
it.
if pw usermod ${WRAP_USER} -d ${MYAPP_DIR}
then
echo Changed home directory of \${WRAP_USER}\ to 
\${MYAPP_DIR}\
else
${MYAPP_DIR}\ failed...
exit 1
fi
else
if pw useradd ${WRAP_USER} -u ${UID} \
-d ${MYAPP_DIR} -s /sbin/nologin -c MyApp Daemon
then
echo Added user \${WRAP_USER}\.
else
echo Adding user \${WRAP_USER}\ failed...
exit 1
fi
fi
;;
esac

--Chris

--


___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


xfe-1.37_1 does not start...

2015-02-08 Thread Eric Douzet
Hello,


xfe-1.37_1 does not start after update of the fox16-1.6.50 library.

portupgrade -fr x11-toolkits/fox16 has no effect.

Best regards,


-- 
Amicalement et librement,

Éric Douzet


Consultant Informatique

Administrateur Réseaux, Système et Base de Données
Consultant Sage (Logiciels de Gestion) - Comptable Diplômé
Sécurité Réseaux - Hébergeur FreeBSD - Audit de Site Web

Systèmes : FreeBSD, Mac OSX, Unix et Windows

Site Web professionnel : www.c-extra.com
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org