Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Creating a package around a set of python scripts

    Scheduled Pinned Locked Moved pfSense Packages
    2 Posts 2 Posters 456 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      bruor
      last edited by

      I've got a set of python scripts that I manually copy to pfsense and launch at boot but I'd like to ideally wrap them in a package that I can install, and have a webui that would expose the configuration along with a service start/stop function.

      Based on what I'm seeing on the package create documentation, it appears that I would actually have to create a freebsd port for this first, and then just wrap a webui around that, is this the only way?

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        A FreeBSD port is the heart of it. You can look at other small and simple packages to get an idea of how they work. For a GUI, it depends on what you need. If it's a few settings then using the built-in XML package GUI method may be easiest, otherwise you can code up a small PHP page to do what you need.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.