Bug 160268 - net-misc/ser2net-2.3-r1 - init script + conf file update
|
Bug#:
160268
|
Product: Gentoo Linux
|
Version: unspecified
|
Platform: All
|
|
OS/Version: All
|
Status: RESOLVED
|
Severity: enhancement
|
Priority: P4
|
|
Resolution: FIXED
|
Assigned To: rajiv@gentoo.org
|
Reported By: cannon@gmx.ch
|
|
Component: Ebuilds
|
|
|
URL:
|
|
Summary: net-misc/ser2net-2.3-r1 - init script + conf file update
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2007-01-05 06:09 0000
|
Hi
The actual ser2net package doesnt have an init script nor has it a good default
config file. So i decided to write it on my own and to update that ebuild.
What i did:
- Added an init script.
- Added a conf.d File
- Created a new "default" configuration File.
- changed the ebuild to install all these files.
Files i created:
- Added ser2net-2.3-r1.ebuild
- Added files/initd-ser2net
- Added files/confd-ser2net
- Added files/config-ser2net
Decisions i made (but which are possibly wrong):
- The ser2net utility doesn't create any pid file. And using "start-stop-daemon
--make-pidfile" also doesn't work because ser2net forks from it's main process.
For this reason i decided to start ser2net "manualy" and to grep out the pid of
its process. This works very well here but i couldn't test it on other
machines.
- The default configuration opens one telnetable port (3001) which is connected
to /dev/ttyS0. Other examples (which i thought could be usefull) are also
included but commented out. I saw this behavior on a few other Packages and
thought this is a good behavior.
Btw. this is my first ebuild modification. So even if i read the docs
conecerning creating ebuild or init scripts, it could have made some mistakes a
pro wouldn't make. So please be fair on your comments!
Created an attachment (id=106049) [details]
Newly updated ser2net ebuild based on ser2net-2.3 ebuild
As i saw today, the original ser2net ebuild has been fixed (autotools fix by
flameeyes), so i decided to update also my r1 Version. This makes the old
ebuild obsolete.
Any chance you will find the time to check my improvements? If not, Could
someone other do it? I would really like to see my enhancements upstream.
ser2net-2.5 incl. init-script in CVS now. I didn't used your sample-config
though.