Postflight error

61 views
Skip to first unread message

Andrew Marks

unread,
Sep 6, 2015, 9:56:30 PM9/6/15
to The Luggage
I am coming from a Casper Suite Composer background. 

I am trying to make a package with The Luggage and I think I have something small missing.

I think i have syntax correct except the post flight script. I get an the following error.

'*** No rule to make target `pack-script-postflight'.  Stop.

I am pasting the code 

What am I missing? The package builds with out it.

include /usr/local/share/luggage/luggage.make
TITLE=audioswitcherluggage.pkg
REVERSE_DOMAIN=com.amarks
PAYLOAD=\
pack-Audioswitcher \
pack-checkusb.sh \
pack-script-postflight \
pack-Audioswitcher: l_usr_local_bin
@sudo ${CP} ./Audioswitcher ${WORK_D}/usr/local/bin/Audioswitcher
@sudo chmod 755 ${WORK_D}/usr/local/bin/Audioswitcher
@sudo chown root:wheel ${WORK_D}/usr/local/bin/Audioswitcher

pack-checkusb.sh: l_usr_local_bin
@sudo ${CP} ./checkusb.sh ${WORK_D}/usr/local/bin/checkusb.sh
@sudo chmod 755 ${WORK_D}/usr/local/bin/checkusb.sh
@sudo chown root:wheel ${WORK_D}/usr/local/bin/checkusb.sh

Vaughn Miller

unread,
Sep 7, 2015, 3:23:23 PM9/7/15
to the-l...@googlegroups.com
Hi Andrew,

Rename your postflight script to postinstall and use pack-script-pb-postinstall to pack the script.  This is because The Luggage is using pkgbuild to build the package, and pkgbuild requires the package scripts to be named preinstall or postinstall.

A couple of other things I see..  
-There should be no line continuation character (\) after the last pack stanza.  
-The Luggage will automatically append .pkg to the package name, no reason to include that in the title.

Hope this helps!

Vaughn Miller

--
You received this message because you are subscribed to the Google Groups "The Luggage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to the-luggage...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Andrew Marks

unread,
Sep 7, 2015, 4:16:24 PM9/7/15
to the-l...@googlegroups.com
Thanks I was able to get it to package.

Sent from my iPhone
You received this message because you are subscribed to a topic in the Google Groups "The Luggage" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/the-luggage/HaunO93s_MI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to the-luggage...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages