My Rust project's port has a small script intended to be used in conjunction with the binary that the package installs. Currently this script is located in the base of my Git repository (it doesn't get installed in the target/release/bin/ subdirectory, because the Cargo build process is not aware of it). I futzed around some to try to get this into the package, all of which involved tweaks to the Makefile and pkg-plist, but no luck. Here's what I tried:
This resulted in the check-orphans target failing because none of the things in my pkg-plist file got installed in the staging area. I think this might be because the default installation steps got replaced by the single step above.
This allowed the pkg-plist stuff to get installed in the staging area, but it put the script in my actual /usr/local/bin/ directory, not the staging area. So maybe $PREFIX is not the right variable.
I tried altering the target path above to be ${STAGEDIR}${PREFIX}, which did put the script in the stage directory, but then the check-orphans step failed and the package ended up not containing the script. The error was
Hm. This has to be possible. How can I get this script into my package? I couldn't figure out from the porters handbook page on installing files how to do this.
Chuck
Makefile:
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/ipfw-ssh.sh ${PREFIX}/bin
This resulted in the check-orphans target failing because none of the things in my pkg-plist file got installed in the staging area. I think this might be because the default installation steps got replaced by the single step above.
Makefile:
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/ipfw-ssh.sh ${PREFIX}/bin
This allowed the pkg-plist stuff to get installed in the staging area, but it put the script in my actual /usr/local/bin/ directory, not the staging area. So maybe $PREFIX is not the right variable.
I tried altering the target path above to be ${STAGEDIR}${PREFIX}, which did put the script in the stage directory, but then the check-orphans step failed and the package ended up not containing the script. The error was
Bash:
xo% sudo make check-orphans
====> Checking for pkg-plist issues (check-plist)
===> Parsing plist
===> Checking for items in STAGEDIR missing from pkg-plist
Error: Orphaned: bin/ipfw-ssh.sh
===> Checking for items in pkg-plist which are not in STAGEDIR
===> Error: Plist issues found.
*** Error code 1
Hm. This has to be possible. How can I get this script into my package? I couldn't figure out from the porters handbook page on installing files how to do this.
Chuck