<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 11/20/2013 01:40 AM, Robby Workman
      wrote:<br>
    </div>
    <blockquote cite="mid:20131119141047.119b68ff@home.rlworkman.net"
      type="cite">
      <pre wrap="">On Tue, 19 Nov 2013 23:35:56 +0530
Aaditya Bagga <a class="moz-txt-link-rfc2396E" href="mailto:abchk1234@gmail.com"><abchk1234@gmail.com></a> wrote:

</pre>
      <blockquote type="cite">
        <pre wrap="">JK Wood wrote:
</pre>
        <blockquote type="cite">
          <pre wrap="">
On Nov 19, 2013 11:15 AM, "Aaditya Bagga" <<a class="moz-txt-link-abbreviated" href="mailto:abchk1234@gmail.com">abchk1234@gmail.com</a> 
<a class="moz-txt-link-rfc2396E" href="mailto:abchk1234@gmail.com"><mailto:abchk1234@gmail.com></a>> wrote:
</pre>
          <blockquote type="cite">
            <pre wrap="">
Aaditya Bagga wrote:
</pre>
            <blockquote type="cite">
              <pre wrap="">
Aaditya Bagga wrote:
</pre>
              <blockquote type="cite">
                <pre wrap="">
Hey folks!

I have built a package for TLP.

<a class="moz-txt-link-freetext" href="http://linrunner.de/en/tlp/tlp.html">http://linrunner.de/en/tlp/tlp.html</a>
<a class="moz-txt-link-freetext" href="http://linrunner.de/en/tlp/docs/tlp-developer-documentation.html">http://linrunner.de/en/tlp/docs/tlp-developer-documentation.html</a>
<a class="moz-txt-link-freetext" href="https://github.com/linrunner/TLP">https://github.com/linrunner/TLP</a>

The SlackBuild
<a class="moz-txt-link-freetext" href="http://sourceforge.net/projects/mefiles/files/TLP.tar.gz">http://sourceforge.net/projects/mefiles/files/TLP.tar.gz</a>

Its my first SlackBuild so..
I built it and installed it my side.

Note-
See the develepor-documentation linked above.
They have some post install tasks, which I have included in 
</pre>
              </blockquote>
            </blockquote>
          </blockquote>
          <pre wrap="">doinst.sh, but there are also some post-remove tasks, which I dont
how to incorporate.
</pre>
          <blockquote type="cite">
            <blockquote type="cite">
              <pre wrap="">
Ok, I tried to improve upon the build script by modifying the 
</pre>
            </blockquote>
          </blockquote>
          <pre wrap="">configuration files that were being placed in /etc/init.d are now 
placed as /etc/rc.d/rc.tlp
</pre>
          <blockquote type="cite">
            <blockquote type="cite">
              <pre wrap="">(The same SlackBuild linked above has been updated)

But I still need to figure out how to add the tlp service to
startup..

</pre>
            </blockquote>
            <pre wrap="">Ok, I think I figured out how to add it to startup..add it to 
</pre>
          </blockquote>
          <pre wrap="">/etc/rc.d/rc.local, set in doinst.sh
</pre>
          <blockquote type="cite">
            <pre wrap="">so thats done.

But still dont know how to perform post-removal tasks like
removal 
</pre>
          </blockquote>
          <pre wrap="">of this line from rc.local or the other settings done in doinst.sh..
</pre>
          <blockquote type="cite">
            <pre wrap="">
_______________________________________________
SlackBuilds-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:SlackBuilds-users@slackbuilds.org">SlackBuilds-users@slackbuilds.org</a> 
</pre>
          </blockquote>
          <pre wrap=""><a class="moz-txt-link-rfc2396E" href="mailto:SlackBuilds-users@slackbuilds.org"><mailto:SlackBuilds-users@slackbuilds.org></a>
</pre>
          <blockquote type="cite">
            <pre wrap=""><a class="moz-txt-link-freetext" href="http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users">http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users</a>
Archives -
<a class="moz-txt-link-freetext" href="http://lists.slackbuilds.org/pipermail/slackbuilds-users/">http://lists.slackbuilds.org/pipermail/slackbuilds-users/</a> FAQ -
<a class="moz-txt-link-freetext" href="http://slackbuilds.org/faq/">http://slackbuilds.org/faq/</a>

</pre>
          </blockquote>
          <pre wrap="">
Generally, you want to avoid messing with the user's rc.local. I'd 
include information on how to add it to rc.local to the README and
let them deal with it. You could wrap it in a check for rc.tdp
existing so that there's no problem after uninstall, I suppose.

Thanks,
JK



</pre>
        </blockquote>
        <pre wrap="">Thanks!

I think that it makes sense that to install a power saving 
service/daemon like TLP, it should autostart :)
But if I cant remove it from rc.local after installation, I think I
will leave it to the user..
But there's one more thing..

 From tlp's website-


    Post Installation Script (tlp)

# Disable conflicting pm-utils hooks-
for i in 95hdparm-apm disable_wol hal-cd-polling
intel-audio-powersave harddrive \ laptop-mode journal-commit
pci_devices pcie_aspm readahead sata_alpm \ sched-powersave
usb_bluetooth wireless xfs_buffer; do if
[ -x /usr/lib/pm-utils/power.d/$i ]; then ln
-sf /usr/lib/tlp-pm/tlp-nop /etc/pm/power.d/$i fi done # Restart
acpid – insert distro specific code here

I put this code in doinst.sh .. should I remove it as well if I cant 
make it go back to the original state ?
</pre>
      </blockquote>
      <pre wrap="">

First of all, you need to subscribe to the list.  We have to go
and manually approve your posts since you're not a subscriber,
but I'm not going to continue doing that.  If you're going to
post regularly, then subscribe.

Second, you don't make modifications to a system aside from the
usual package installation stuff.  Don't edit the init scripts,
don't edit files that belong to another package, etcetera.  If
those things *must* be done, then you note them in the README
file that we require (or if there are *lots* of things to do,
then you create a separate file, e.g. README.initialsetup).

Third, the comflicting pm-utils hooks are already disabled in
Slackware 14.1 ; we did that during the -current devel cycle.

Fourth, Slackware doesn't provide any pre-remove or post-remove
support for packages; I won't argue that there's some potential
use case for it, but this is one of the (many) cases where it
would be abused to undo something that the package never should
have done anyway.

-RW
</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SlackBuilds-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:SlackBuilds-users@slackbuilds.org">SlackBuilds-users@slackbuilds.org</a>
<a class="moz-txt-link-freetext" href="http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users">http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users</a>
Archives - <a class="moz-txt-link-freetext" href="http://lists.slackbuilds.org/pipermail/slackbuilds-users/">http://lists.slackbuilds.org/pipermail/slackbuilds-users/</a>
FAQ - <a class="moz-txt-link-freetext" href="http://slackbuilds.org/faq/">http://slackbuilds.org/faq/</a>

</pre>
    </blockquote>
    1.)Sorry, I had changed my email, but the mailing list didnt seem to
    recognise it..<br>
    So I unsubscribed and subscribed again.<br>
    Sorry for any inconvinience caused, it was a hinderance to me too.<br>
    <br>
    2.)I did notice that the folder in question was empty for me, but I
    didnt know if it would be empty for others :)<br>
    <br>
    3.)I tried to address these concerns in my last message-<br>
    <br>
    Aaditya Bagga wrote:
    <br>
    <br>
    Ok, I tried <span class="moz-smiley-s1" title=":)"></span>
    <br>
    I made the doinst.sh file optional, if a user wants, he could run
    the slackbuild with additional argument to do post-install
    functions.
    <br>
    I have also included a script for doing post removal functions.
    <br>
    I wrote this info in the README.
    <br>
    <br>
    The file to download is the same, <a class="moz-txt-link-freetext"
      href="http://sourceforge.net/projects/mefiles/files/TLP.tar.gz/">http://sourceforge.net/projects/mefiles/files/TLP.tar.gz/</a>
    <br>
    <br>
    Thanks! :)<br>
  </body>
</html>