Bug 150881 - [patch] sysutils/backuppc: remove %%RC_SUBR%%, etc.
Summary: [patch] sysutils/backuppc: remove %%RC_SUBR%%, etc.
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: Pav Lucistnik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-23 13:50 UTC by Alexander Moisseev
Modified: 2010-11-06 19:00 UTC (History)
0 users

See Also:


Attachments
file.diff (1.52 KB, patch)
2010-09-23 13:50 UTC, Alexander Moisseev
no flags Details | Diff
patch.diff (2.53 KB, patch)
2010-11-06 13:22 UTC, Alexander Moisseev
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Moisseev 2010-09-23 13:50:00 UTC
files/backuppc.in:
- %%RC_SUBR%% macro replaced with "/etc/rc.subr" because of desupport for the RC_SUBR in bsd.port.mk.

pkg-plist:
- %%ETCDIR%%/hosts and %%ETCDIR%%/config.pl shouldn't be removed automatically during deinstallation because they are actual config files, not examples. This files dynamically created by complicated configuration process at installation time and may be automatically modified during upgrade.

Makefile:
- Removed unnecessary intermediate directory in BPC_DATADIR path.

Fix: Patch attached with submission follows:
Comment 1 Philip M. Gollucci freebsd_committer freebsd_triage 2010-09-23 18:55:59 UTC
Responsible Changed
From-To: freebsd-ports-bugs->pgollucci

I will take it
Comment 2 Philip M. Gollucci freebsd_committer freebsd_triage 2010-09-24 07:25:29 UTC
Responsible Changed
From-To: pgollucci->freebsd-ports-bugs

going to have enotime for the next 2 weeks, sorry
Comment 3 Pav Lucistnik freebsd_committer freebsd_triage 2010-10-29 13:17:14 UTC
State Changed
From-To: open->feedback

Hi, 

I have committed the changes expect for the pkg-plist change. I cannot agree to 
that change (it would leave files behind on deinstall). Also the configure.pl 
script is not invoked at all when adding from package. 

Maybe you could rework the port to not invoke configure.pl script at all and 
leave it to the administrator as a manual post-install step? 


Comment 4 Pav Lucistnik freebsd_committer freebsd_triage 2010-10-29 13:17:14 UTC
Responsible Changed
From-To: freebsd-ports-bugs->pav

Track
Comment 5 dfilter service freebsd_committer freebsd_triage 2010-10-29 13:28:47 UTC
pav         2010-10-29 12:28:42 UTC

  FreeBSD ports repository

  Modified files:
    sysutils/backuppc    Makefile 
    sysutils/backuppc/files backuppc.in 
  Log:
  - Fix rc script
  - Change /var/db/ path
  
  PR:             ports/150881
  Submitted by:   Alexander Moisseev <moiseev@mezonplus.ru> (maintainer)
  
  Revision  Changes    Path
  1.2       +2 -1      ports/sysutils/backuppc/Makefile
  1.2       +1 -1      ports/sysutils/backuppc/files/backuppc.in
_______________________________________________
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 Alexander Moisseev 2010-11-06 13:22:11 UTC
With enclosed patch the port would leave on deinstall only manually copied by administrator config files and configuration backups created during upgrade. Is it OK?
Actually the configure.pl is complex all-in-one installation, configuration and upgrade script. For this reason packaging not possible without major change of source code.
Does packaging make sense since the port does not build anything?
Comment 7 Pav Lucistnik freebsd_committer freebsd_triage 2010-11-06 18:54:35 UTC
State Changed
From-To: feedback->closed

Committed, thanks, this was acceptable.  As for your last question, it's up to 
you, having port if nothing else it gives an user a warning when new version is 
available.
Comment 8 dfilter service freebsd_committer freebsd_triage 2010-11-06 18:55:42 UTC
pav         2010-11-06 18:55:37 UTC

  FreeBSD ports repository

  Modified files:
    sysutils/backuppc    Makefile distinfo pkg-plist 
  Log:
  - Make this port play nice with leftover config files
  
  PR:             ports/150881
  Submitted by:   Alexander Moisseev <moiseev@mezonplus.ru> (maintainer)
  
  Revision  Changes    Path
  1.3       +12 -2     ports/sysutils/backuppc/Makefile
  1.2       +0 -1      ports/sysutils/backuppc/distinfo
  1.2       +4 -4      ports/sysutils/backuppc/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"