Bug 198263 - security/fakeident: move source to files, use rc structure
Summary: security/fakeident: move source to files, use rc structure
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Thomas Zander
URL:
Keywords: needs-qa, patch
Depends on:
Blocks:
 
Reported: 2015-03-04 01:00 UTC by Jason Helfman
Modified: 2015-12-31 19:07 UTC (History)
4 users (show)

See Also:
riggs: maintainer-feedback+


Attachments
patch (22.20 KB, patch)
2015-03-04 01:00 UTC, Jason Helfman
jgh: maintainer-approval+
Details | Diff
Updated patch, and added a pkg-message. (23.15 KB, patch)
2015-11-09 23:34 UTC, Jason Helfman
no flags Details | Diff
patch (22.96 KB, text/plain)
2015-12-31 17:21 UTC, Jason Helfman
no flags Details
patch fixed (22.67 KB, text/plain)
2015-12-31 18:22 UTC, Jason Helfman
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Helfman freebsd_committer freebsd_triage 2015-03-04 01:00:39 UTC
Created attachment 153754 [details]
patch

I've moved the source for fakeident into the files directory, as I've found the distfile to not be that reliable. I also doubt the software will ever be actually updated, and since it is so small I didn't see any harm in bringing it into the files directory.

I've stripped the binary that is installed, and moved the service to the rc structure. This way it can be properly tracked, and enabled/disabled even at boot time.

Please let me know your thoughts!
Thanks :)
Jason
Comment 1 Bartek Rutkowski freebsd_committer freebsd_triage 2015-11-08 16:14:44 UTC
@jgh, this patch no longer applies, can you submit a new one?
Comment 2 Jason Helfman freebsd_committer freebsd_triage 2015-11-09 23:34:51 UTC
Created attachment 162940 [details]
Updated patch, and added a pkg-message.
Comment 3 Thomas Zander freebsd_committer freebsd_triage 2015-12-31 15:19:03 UTC
There is no previous version of fakeidentd.in in the tree, so it gets skipped during patching.
Can you re-submit against an up-to-date ports tree?
Comment 4 Jason Helfman freebsd_committer freebsd_triage 2015-12-31 17:21:25 UTC
Created attachment 164903 [details]
patch

Attached is the patch. There was no update based on updating my svn checkout. I suspect you will have the same issue.

Are you using svn patch to apply the differential?

-jgh
Comment 5 Thomas Zander freebsd_committer freebsd_triage 2015-12-31 17:49:35 UTC
(In reply to Jason Helfman from comment #4)

Yes, I do use svn patch. This happens...

> svn patch ~/patch.txt
U         Makefile
D         distinfo
D         files/fakeident.sh
D         files
Skipped missing target: 'files/fakeidentd.in'
A         files
A         files/identd.c
A         pkg-message
Summary of conflicts:
  Skipped paths: 1

... and is totally expected since there is no files/fakeidentd.in:
https://svnweb.freebsd.org/ports/head/security/fakeident/files/

I suspect there is something wrong with your local checkout.
Also the patch should not delete the entire files/ dir and recreate it again.
Comment 6 Jason Helfman freebsd_committer freebsd_triage 2015-12-31 18:22:50 UTC
Created attachment 164907 [details]
patch fixed

it did seem to be a corrupted checkout on deeper investigation.

this should do it.

-jgh
Comment 7 Thomas Zander freebsd_committer freebsd_triage 2015-12-31 18:47:33 UTC
New patch does not change function or intention of already maintainer-approved patch.
Comment 8 commit-hook freebsd_committer freebsd_triage 2015-12-31 19:01:23 UTC
A commit references this bug:

Author: riggs
Date: Thu Dec 31 19:01:06 UTC 2015
New revision: 404959
URL: https://svnweb.freebsd.org/changeset/ports/404959

Log:
  Include source file in the ports tree; use rc script

  - The original distfile URL seems to be quite unreliable. The only
    distfile (a single .c file) is small and hence included in the
    ports tree.
  - Use a proper rc startup script.

  PR:		198263
  Submitted by:	jgh
  Approved by:	dean@odyssey.apana.org.au

Changes:
  head/security/fakeident/Makefile
  head/security/fakeident/distinfo
  head/security/fakeident/files/fakeident.sh
  head/security/fakeident/files/fakeidentd.in
  head/security/fakeident/files/identd.c
  head/security/fakeident/pkg-message
Comment 9 Thomas Zander freebsd_committer freebsd_triage 2015-12-31 19:02:06 UTC
Thanks for checking and preparing the new patch!
Comment 10 Jason Helfman freebsd_committer freebsd_triage 2015-12-31 19:07:31 UTC
(In reply to Thomas Zander from comment #9)
Your welcome, and thanks for putting this through!

-jgh