Bug 138306 - databases/mysqlard - fix mysqlard.conf install with pkg_add
Summary: databases/mysqlard - fix mysqlard.conf install with pkg_add
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: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-29 12:00 UTC by Alexey Degtyarev
Modified: 2009-11-04 21:19 UTC (History)
0 users

See Also:


Attachments
mysqlard.patch (639 bytes, patch)
2009-08-29 12:00 UTC, Alexey Degtyarev
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Degtyarev 2009-08-29 12:00:07 UTC
databases/mysqlard package does not installs mysqlard.conf then installing
binary package.

$ pkg_add mysqlard-1.0.0_1.tbz
cp: /usr/local/www/mysqlard/mysqlard.cnf: No such file or directory
pkg_add: command '[ -f /usr/local/etc/mysqlard.cnf ] || cp /usr/local/www/mysqlard/mysqlard.cnf /usr/local/etc' failed
...

$ ls /usr/local/etc/mysqlard.cnf
ls: /usr/local/etc/mysqlard.cnf: No such file or directory

This is because of incorrect @exec command sequence in pkg-plist:

@unexec if cmp -s %D/etc/mysqlard.cnf %D/www/mysqlard/mysqlard.cnf; then rm -f %D/etc/mysqlard.cnf; fi
@exec [ -f %D/etc/mysqlard.cnf ] || cp %D/www/mysqlard/mysqlard.cnf %D/etc
...
www/mysqlard/mysqlard.cnf

Command cp(1) involved before config file is beeing installed.

Fix: Place @exec command after www/mysqlard/mysqlard.cnf defenition in pkg-plist:

	
How-To-Repeat: Install mysqlard as package - no config file will be installed at PREFIX/etc
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2009-08-29 12:00:25 UTC
Maintainer of databases/mysqlard,

Please note that PR ports/138306 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/138306

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2009-08-29 12:00:27 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 gba 2009-09-02 05:52:12 UTC
i approve.

-g

On Sat, Aug 29, 2009 at 4:00 AM, Edwin Groothuis<edwin@freebsd.org> wrote:
> Maintainer of databases/mysqlard,
>
> Please note that PR ports/138306 has just been submitted.
>
> If it contains a patch for an upgrade, an enhancement or a bug fix
> you agree on, reply to this email stating that you approve the patch
> and a committer will take care of it.
>
> The full text of the PR can be found at:
> =A0 =A0http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dports/138306
>
> --
> Edwin Groothuis via the GNATS Auto Assign Tool
> edwin@FreeBSD.org
>



--=20
Greg Albrecht (gba@GregAlbrecht.com)
Mobile: 1-310-621-9598
www.GregAlbrecht.com
KF4MKT
Comment 4 Mark Linimon freebsd_committer freebsd_triage 2009-09-02 10:46:45 UTC
State Changed
From-To: feedback->open

Maintainer approved.
Comment 5 dfilter service freebsd_committer freebsd_triage 2009-11-04 21:01:40 UTC
lippe       2009-11-04 21:01:31 UTC

  FreeBSD ports repository

  Modified files:
    databases/mysqlard   pkg-plist 
  Log:
  - Fix port when installing via pkg_add.
  
  PR:             ports/138306
  Submitted by:   Alexey V.Degtyarev <alexey@renatasystems.org>
  Approved by:    Greg Albrecht <gregoryba@gmail.com>
  
  Revision  Changes    Path
  1.2       +1 -1      ports/databases/mysqlard/pkg-plist
_______________________________________________
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 Felippe de Meirelles Motta freebsd_committer freebsd_triage 2009-11-04 21:19:08 UTC
State Changed
From-To: open->closed

Committed. Thanks!