{"action":"created","issue":{"url":"https://api.github.com/repos/unixorn/luggage/issues/59","labels_url":"https://api.github.com/repos/unixorn/luggage/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/unixorn/luggage/issues/59/comments","events_url":"https://api.github.com/repos/unixorn/luggage/issues/59/events","html_url":"https://github.com/unixorn/luggage/issues/59","id":74953528,"number":59,"title":"chmod no such file or directory after make pkg","user":{"login":"orcutt989","id":5608027,"avatar_url":"https://avatars.githubusercontent.com/u/5608027?v=3","gravatar_id":"","url":"https://api.github.com/users/orcutt989","html_url":"https://github.com/orcutt989","followers_url":"https://api.github.com/users/orcutt989/followers","following_url":"https://api.github.com/users/orcutt989/following{/other_user}","gists_url":"https://api.github.com/users/orcutt989/gists{/gist_id}","starred_url":"https://api.github.com/users/orcutt989/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orcutt989/subscriptions","organizations_url":"https://api.github.com/users/orcutt989/orgs","repos_url":"https://api.github.com/users/orcutt989/repos","events_url":"https://api.github.com/users/orcutt989/events{/privacy}","received_events_url":"https://api.github.com/users/orcutt989/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-10T16:35:15Z","updated_at":"2015-05-11T01:28:05Z","closed_at":null,"body":"I have an application that is a directory with many directories and the app inside of the parent directory\r\n\r\nex. \r\n\r\n/Applications/MacVector/Templates\r\n/Applications/MacVector/MacVector.app\r\n/Applications/MacVector/Tutorials\r\n\r\nI need to pack /Applications/MacVector. I have the MacVector directory in the same directory as my make file. When I make the package, I get \"chmod: /tmp/the_luggage/MacVector-20150510/root/Applications/MacVector: No such file or directory\".  I got the same issue when I tar the package as well and use unbz2-applications-MacVector to install it. \r\n\r\nFor some reason /tmp/the_luggage/MacVector-20150510/root/Applications is being overwritten with the MacVector folder instead of the MacVector folder going inside of it.\r\n\r\nHere's my makefile. I made my own rule instead of using unbz2-applications-... because I am trying to learn. I get the same error with both methods anyways.\r\n \r\nTITLE=MacVector\r\nREVERSE_DOMAIN=com.osuccc\r\nPAYLOAD=pack-MacVector\r\n\r\npack-MacVector:\r\n\t@sudo ${CP} -r ./MacVector/ ${WORK_D}/Applications/\r\n\t@sudo chmod 755 ${WORK_D}/Applications/MacVector\r\n\t@sudo chown root:admin ${WORK_D}/Applications/MacVector\r\n"},"comment":{"url":"https://api.github.com/repos/unixorn/luggage/issues/comments/100731776","html_url":"https://github.com/unixorn/luggage/issues/59#issuecomment-100731776","issue_url":"https://api.github.com/repos/unixorn/luggage/issues/59","id":100731776,"user":{"login":"orcutt989","id":5608027,"avatar_url":"https://avatars.githubusercontent.com/u/5608027?v=3","gravatar_id":"","url":"https://api.github.com/users/orcutt989","html_url":"https://github.com/orcutt989","followers_url":"https://api.github.com/users/orcutt989/followers","following_url":"https://api.github.com/users/orcutt989/following{/other_user}","gists_url":"https://api.github.com/users/orcutt989/gists{/gist_id}","starred_url":"https://api.github.com/users/orcutt989/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orcutt989/subscriptions","organizations_url":"https://api.github.com/users/orcutt989/orgs","repos_url":"https://api.github.com/users/orcutt989/repos","events_url":"https://api.github.com/users/orcutt989/events{/privacy}","received_events_url":"https://api.github.com/users/orcutt989/received_events","type":"User","site_admin":false},"created_at":"2015-05-11T01:28:05Z","updated_at":"2015-05-11T01:28:05Z","body":"Thanks. Like I said I got the same error when I used the unbz2-applications-.. stanza. I just created my own rule for educational purposes.\r\n\r\nHere is my makefile using the unbz2 stanza instead of my rule I created.\r\n'USE_PKGBUILD=1'\r\ninclude /usr/local/share/luggage/luggage.make\r\nTITLE=MacVector\r\nREVERSE_DOMAIN=com.osuccc\r\nPAYLOAD=unbz2-applications-MacVector'\r\n\r\nI don't get the chown error anymore, but its still telling me that /tmp/the_luggage/MacVector-20150510/root/Applications does not exist. There is nothing in /tmp/the_luggage/MacVector-20150510/root/."}}